Skip to content

Commit 81da5ca

Browse files
committed
fix: validation errors - cross-platform and consistency
1. Cross-platform issue (enhance.md): - Replace hardcoded ~/.claude/enhance/suppressions.json - Use ${STATE_DIR}/enhance/suppressions.json placeholder - Now works across Claude Code, OpenCode, and Codex 2. Consistency validator (validate-repo-consistency.js): - Fix regex to handle backticks in skill references - Pattern now matches both "MUST execute the skill-name skill" and "MUST execute the `skill-name` skill" - Resolves 8 false-positive errors for enhance agents All validation checks now pass: - npm test: 1400 tests passing - npm run verify: All tools detected - npm run validate: All checks passing
1 parent 9096c64 commit 81da5ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/enhance/commands/enhance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Auto-learning enabled by default - detects and saves false positives for future
137137
- Auto-fixable issues highlighted
138138
- Fixes applied only with explicit --apply flag
139139
- Auto-learning detects false positives with 90%+ confidence
140-
- Learned suppressions stored in cross-platform location (~/.claude/enhance/suppressions.json)
140+
- Learned suppressions stored in cross-platform location (${STATE_DIR}/enhance/suppressions.json)
141141
- Zero token waste on previously suppressed findings
142142

143143
---

scripts/validate-repo-consistency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function validateEnhanceAgentSkillUsage() {
422422
for (const file of agentFiles) {
423423
const filePath = path.join(agentsDir, file);
424424
const content = fs.readFileSync(filePath, 'utf8');
425-
const usageMatch = content.match(/MUST execute the ([^\s]+) skill/);
425+
const usageMatch = content.match(/MUST execute the `?([^\s`]+)`? skill/);
426426
if (!usageMatch) {
427427
errors.push(`enhance agent ${file} must require skill usage with "MUST execute the <skill> skill"`);
428428
continue;

0 commit comments

Comments
 (0)