Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test(ci): pin that identifiers containing CLAUDE_PROJECT_DIR still pass

Matt Van Horn6e15d4546759
diff --git a/tests/ci/validate-skill-host-compat.test.js b/tests/ci/validate-skill-host-compat.test.js
index df476bcda..88ba8c01d 100644
--- a/tests/ci/validate-skill-host-compat.test.js
+++ b/tests/ci/validate-skill-host-compat.test.js
@@ -203,6 +203,22 @@ check('bash fence $(pwd) is accepted in place of CLAUDE_PROJECT_DIR', () => {
}
});
+check('bash fence variables that only contain CLAUDE_PROJECT_DIR are accepted', () => {
+ const root = createRoot();
+ try {
+ writeSkill(
+ root,
+ 'proj',
+ `${checklistBody('Proj')}\n## Code Examples\n\n\`\`\`bash\ncd "$MY_CLAUDE_PROJECT_DIR"\ncd "\${MY_CLAUDE_PROJECT_DIR}"\nls "$CLAUDE_PROJECT_DIR_TMP"\nls "\${CLAUDE_PROJECT_DIR_TMP}"\n\`\`\`\n`
+ );
+ const result = runValidator(root);
+ assert.strictEqual(result.status, 0, result.stderr);
+ assert.ok(!result.stderr.includes('ERROR:'));
+ } finally {
+ cleanup(root);
+ }
+});
+
check('prose mention of CLAUDE_PROJECT_DIR does not fail', () => {
const root = createRoot();
try {