M1: Fixer skill and prompt infrastructure #92

Closed
opened 2026-08-01 01:43:42 +00:00 by david · 1 comment
Owner

Fixer Skill and Prompt Infrastructure

Create the fixer skill body and prompt composition helpers.

New Files

  • src/fixer/index.ts — public exports
  • src/skills/fixerSkill.ts — bundled fixer skill with git-fixing instructions
  • src/fixer/helpers/buildFixerWrapper.ts — thin wrapper with stage contract
  • src/fixer/helpers/buildFixerUserPrompt.ts — dynamic user prompt (error/stage context)

Skill Content

The fixer skill should instruct the agent to:

  1. Investigate git state (status, log, diff, branch list)
  2. Identify the root cause of the GitError
  3. Attempt a fix using git commands (reset, stash, checkout, merge --abort, etc.)
  4. Report what was done and whether the fix succeeded

Tests

  • buildFixerWrapper.test.ts — verify wrapper content
  • buildFixerUserPrompt.test.ts — verify error/stage context injection

Acceptance Criteria

  • fixerSkill.ts has clear git-fixing instructions
  • buildFixerWrapper returns stage contract text
  • buildFixerUserPrompt injects error message and stage name
  • Tests pass for both helpers
## Fixer Skill and Prompt Infrastructure Create the fixer skill body and prompt composition helpers. ### New Files - `src/fixer/index.ts` — public exports - `src/skills/fixerSkill.ts` — bundled fixer skill with git-fixing instructions - `src/fixer/helpers/buildFixerWrapper.ts` — thin wrapper with stage contract - `src/fixer/helpers/buildFixerUserPrompt.ts` — dynamic user prompt (error/stage context) ### Skill Content The fixer skill should instruct the agent to: 1. Investigate git state (status, log, diff, branch list) 2. Identify the root cause of the GitError 3. Attempt a fix using git commands (reset, stash, checkout, merge --abort, etc.) 4. Report what was done and whether the fix succeeded ### Tests - `buildFixerWrapper.test.ts` — verify wrapper content - `buildFixerUserPrompt.test.ts` — verify error/stage context injection ### Acceptance Criteria - [ ] fixerSkill.ts has clear git-fixing instructions - [ ] buildFixerWrapper returns stage contract text - [ ] buildFixerUserPrompt injects error message and stage name - [ ] Tests pass for both helpers
david self-assigned this 2026-08-01 01:43:42 +00:00
Author
Owner

pi-loop opened a Draft pull request for this issue: #97

pi-loop opened a Draft pull request for this issue: https://git.excelera.net/david/pi-loop/pulls/97
david closed this issue 2026-08-01 01:59:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
david/pi-loop#92
No description provided.