Exclude teach-impeccable from suggestions, allow other installed skills

- Filter teach-impeccable from {{available_commands}} (setup skill, not a fix)
- Soften wording: "prefer" our commands but also allow other installed skills
  the LLM is sure exist, preventing false negatives while still preventing
  hallucinated commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-03-05 10:20:38 -08:00
co-authored by Claude Opus 4.6
parent 870d65b1e3
commit cb596b538e
3 changed files with 9 additions and 6 deletions
+6 -3
View File
@@ -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)
+2 -2
View File
@@ -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)"
+1 -1
View File
@@ -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.