Skip to content

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.

fix(goal-init): match Goal Ready in both audit and fallback output (#341)

Cobus Greylingb28c10781f8a
diff --git a/tools/goal-init/test/cli.test.mjs b/tools/goal-init/test/cli.test.mjs
index 3da00ed..3bfe0bd 100644
--- a/tools/goal-init/test/cli.test.mjs
+++ b/tools/goal-init/test/cli.test.mjs
@@ -42,8 +42,8 @@ describe('goal-init cli', () => {
assert.ok(await exists(path.join(testDir, '.grok', 'skills', 'goal-scoper', 'SKILL.md')));
assert.ok(await exists(path.join(testDir, 'AGENTS.md')));
- // Check output contains audit string
- assert.match(stdout, /Goal Ready:/);
+ // Match live audit ("Goal Ready:") or fallback ("Goal Ready score")
+ assert.match(stdout, /Goal Ready/);
});
test('appends to existing AGENTS.md', async () => {