Skip to content

The design language that makes your AI harness better at design.

JavaScript

Exclude teach-impeccable from suggestions, allow other installed skills

Paul Bakauscb596b538e43
diff --git a/scripts/lib/utils.js b/scripts/lib/utils.js
index 3621dbd15..e0d80ede5 100644
--- a/scripts/lib/utils.js
+++ b/scripts/lib/utils.js
@@ -326,11 +326,14 @@ function escapeRegex(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
+const EXCLUDED_FROM_SUGGESTIONS = new Set(['teach-impeccable', 'i-teach-impeccable']);
+
export function replacePlaceholders(content, provider, commandNames = []) {
const placeholders = PROVIDER_PLACEHOLDERS[provider] || PROVIDER_PLACEHOLDERS['cursor'];
- const commandList = commandNames.length > 0
- ? commandNames.map(n => `/${n}`).join(', ')
- : '';
+ const commandList = commandNames
+ .filter(n => !EXCLUDED_FROM_SUGGESTIONS.has(n))
+ .map(n => `/${n}`)
+ .join(', ');
return content
.replace(/\{\{model\}\}/g, placeholders.model)
diff --git a/source/skills/audit/SKILL.md b/source/skills/audit/SKILL.md
index 37accd069..e30b036f6 100644
--- a/source/skills/audit/SKILL.md
+++ b/source/skills/audit/SKILL.md
@@ -71,7 +71,7 @@ For each issue, document:
- **Impact**: How it affects users
- **WCAG/Standard**: Which standard it violates (if applicable)
- **Recommendation**: How to fix it
-- **Suggested command**: Which command to use (ONLY from: {{available_commands}})
+- **Suggested command**: Which command to use (prefer: {{available_commands}} — or other installed skills you're sure exist)
#### Critical Issues
[Issues that block core functionality or violate WCAG A]
@@ -108,7 +108,7 @@ Create actionable plan:
### Suggested Commands for Fixes
-Map issues to the available commands. **Only suggest commands from this list**: {{available_commands}}. Never invent commands that aren't listed.
+Map issues to available commands. Prefer these: {{available_commands}}. You may also suggest other installed skills you're sure exist, but never invent commands.
Examples:
- "Use `/normalize` to align with design system (addresses N theming issues)"
diff --git a/source/skills/critique/SKILL.md b/source/skills/critique/SKILL.md
index e9dd53fc6..ec2009d91 100644
--- a/source/skills/critique/SKILL.md
+++ b/source/skills/critique/SKILL.md
@@ -98,7 +98,7 @@ For each issue:
- **What**: Name the problem clearly
- **Why it matters**: How this hurts users or undermines goals
- **Fix**: What to do about it (be concrete)
-- **Command**: Which command to use (ONLY from: {{available_commands}})
+- **Command**: Which command to use (prefer: {{available_commands}} — or other installed skills you're sure exist)
### Minor Observations
Quick notes on smaller issues worth addressing.