Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.
TypeScript agentic-aiai-agentsai-codinganthropicautomationclaudeclaude-codecodexcoding-agentsdevops-automationdevtoolsgithub-actionsgrokllmloop-engineeringmcpprompt-engineering
fix(goal-audit): test fixtures for CI; bump 1.0.1 (#54)
Cobus Greylinge2564e4c2dfb
diff --git a/tools/goal-audit/package.json b/tools/goal-audit/package.jsonindex 5c6cb51..f5910c6 100644--- a/tools/goal-audit/package.json+++ b/tools/goal-audit/package.json@@ -1,6 +1,6 @@{"name": "@cobusgreyling/goal-audit",- "version": "1.0.0",+ "version": "1.0.1","description": "Goal engineering readiness auditor for Grok Build /goal. Compute Goal Readiness Score (G0-G3). npx @cobusgreyling/goal-audit . --suggest","type": "module","bin": {diff --git a/tools/goal-audit/test/auditor.test.mjs b/tools/goal-audit/test/auditor.test.mjsindex bfbfc6c..f00ab5e 100644--- a/tools/goal-audit/test/auditor.test.mjs+++ b/tools/goal-audit/test/auditor.test.mjs@@ -5,17 +5,18 @@ import { fileURLToPath } from 'node:url';import { auditProject } from '../dist/auditor.js';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(__dirname, '../../..');+const fixturesRoot = path.join(__dirname, 'fixtures');-test('goal-engineering repo scores G2+', async () => {- const result = await auditProject(repoRoot);+test('good-goal-project fixture scores G2+', async () => {+ const target = path.join(fixturesRoot, 'good-goal-project');+ const result = await auditProject(target);assert.ok(result.score >= 60, `expected G2+, got ${result.score} (${result.level})`);assert.equal(result.signals.verifier.present, true);assert.equal(result.signals.goalFile.present, true);});test('empty temp dir scores low', async () => {- const tmp = path.join(repoRoot, 'tools/goal-audit/test/fixtures-empty');+ const tmp = path.join(fixturesRoot, 'fixtures-empty');const result = await auditProject(tmp);assert.ok(result.score < 40);assert.equal(result.level, 'G0');diff --git a/tools/goal-audit/test/fixtures/good-goal-project/AGENTS.md b/tools/goal-audit/test/fixtures/good-goal-project/AGENTS.mdnew file mode 100644index 0000000..c64af62--- /dev/null+++ b/tools/goal-audit/test/fixtures/good-goal-project/AGENTS.md@@ -0,0 +1,3 @@+# AGENTS++Use /goal and update_goal. goal-verifier before completed: true.\ No newline at end of filediff --git a/tools/goal-audit/test/fixtures/good-goal-project/GOAL.md b/tools/goal-audit/test/fixtures/good-goal-project/GOAL.mdnew file mode 100644index 0000000..5ef397c--- /dev/null+++ b/tools/goal-audit/test/fixtures/good-goal-project/GOAL.md@@ -0,0 +1,7 @@+# GOAL.md++## Active Objective+Test fixture objective.++## Done Condition+- [ ] Tests pass\ No newline at end of filediff --git a/tools/goal-audit/test/fixtures/good-goal-project/package.json b/tools/goal-audit/test/fixtures/good-goal-project/package.jsonnew file mode 100644index 0000000..6a5ff89--- /dev/null+++ b/tools/goal-audit/test/fixtures/good-goal-project/package.json@@ -0,0 +1 @@+{"name":"fixture","scripts":{"test":"node -e 0"}}\ No newline at end of file