Harden the shared console install, launcher, Loop staging, spec state and prompts

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-08 13:48:28 -08:00
1 parent 120c259d9c
commit 3ee96834bf
130 files changed
+5988 -1434

No files matched your search

@@ -24,14 +24,16 @@ describe('buildStepPrompt', () => {
expect(prompt).toContain('/plan2code-init');
});
it('plan prompt includes /plan2code-1-plan skill invocation', () => {
it('plan prompt says to open the skill file and follow it', () => {
const prompt = buildStepPrompt('plan', config);
expect(prompt).toContain('/plan2code-1-plan');
expect(prompt).toContain('Open the skill file .claude/skills/plan2code-1-plan/SKILL.md and follow it');
expect(prompt).not.toContain('Run the /plan2code');
});
it('document prompt includes /plan2code-2-document skill invocation', () => {
it('document prompt says to open the skill file and follow it', () => {
const prompt = buildStepPrompt('document', config);
expect(prompt).toContain('/plan2code-2-document');
expect(prompt).toContain('Open the skill file .claude/skills/plan2code-2-document/SKILL.md and follow it');
expect(prompt).not.toContain('Run the /plan2code');
});
it('implement prompt instructs direct tool usage without skill invocation', () => {
@@ -39,9 +41,10 @@ describe('buildStepPrompt', () => {
expect(prompt).toContain('Do NOT use the Skill tool');
});
it('finalize prompt includes /plan2code-4-finalize skill invocation', () => {
it('finalize prompt says to open the skill file and follow it', () => {
const prompt = buildStepPrompt('finalize', config);
expect(prompt).toContain('/plan2code-4-finalize');
expect(prompt).toContain('Open the skill file .claude/skills/plan2code-4-finalize/SKILL.md and follow it');
expect(prompt).not.toContain('Run the /plan2code');
});
it('plan prompt includes project name and description', () => {
@@ -56,7 +56,7 @@ If IDEA.md does not already exist, create it with the project name and descripti
function buildPlanPrompt(config: BotConfig): string {
return `${AUTONOMOUS_PREAMBLE}
Run the /plan2code-1-plan skill to create a plan for this project.
Open the skill file .claude/skills/plan2code-1-plan/SKILL.md and follow it to create a plan for this project.
Read the IDEA.md file first to understand the project. The project is: ${config.ideaDescription}
@@ -72,7 +72,7 @@ When making decisions during planning:
function buildDocumentPrompt(config: BotConfig): string {
return `${AUTONOMOUS_PREAMBLE}
Run the /plan2code-2-document skill to transform the plan into implementation specs.
Open the skill file .claude/skills/plan2code-2-document/SKILL.md and follow it to transform the plan into implementation specs.
Read the existing plan output in specs/ first to understand what was planned.
@@ -121,7 +121,7 @@ You are a senior software engineer implementing a project phase. Do NOT use the
function buildFinalizePrompt(config: BotConfig): string {
return `${AUTONOMOUS_PREAMBLE}
Run the /plan2code-4-finalize skill to validate and archive the completed project.
Open the skill file .claude/skills/plan2code-4-finalize/SKILL.md and follow it to validate and archive the completed project.
When making decisions:
- Approve all documentation updates