repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

prompts: use markdown output contracts

a75810ccfb1156177244f305fbb42f80c9980097

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (4)

+97 / −69 text lines

Diff layout

.pi/prompts/handmade.md

Modified

+25 / −18 text lines

5252## Output Contract
54Return structured JSON:
54Return Markdown, not JSON.
56```json
57{
58 "status": "complete|blocked|failed",
59 "compressionCandidates": [
60 {
61 "paths": ["files"],
62 "duplication": "what repeats or bloats",
63 "proposal": "simpler shared shape",
64 "benefit": "less drift, fewer concepts, smaller surface",
65 "risk": "behavior/public API/perf risk"
66 }
67 ],
68 "edits": ["files changed or proposed"],
69 "behaviorRisk": "low|medium|high",
70 "tests": ["tests run or needed"],
71 "nextSteps": ["follow-up cleanup"]
72}
56Use this shape:
58```markdown
59## Status
60complete | blocked | failed
62## Compression Candidates
63- `path/or/file`
64 - Duplication: what repeats or bloats
65 - Proposal: simpler shared shape
66 - Benefit: less drift, fewer concepts, smaller surface
67 - Risk: behavior/public API/perf risk
69## Edits
70- files changed or proposed
72## Behavior Risk
73low | medium | high
75## Tests
76- tests run or needed
78## Next Steps
79- follow-up cleanup
7380```

.pi/prompts/pioneer.md

Modified

+27 / −18 text lines

4141## Output Contract
43Return structured JSON:
43Return Markdown, not JSON.
45```json
46{
47 "status": "complete|blocked|failed",
48 "proved": ["spec claims supported by prototype evidence"],
49 "disproved": ["spec claims contradicted by prototype evidence"],
50 "specIssues": [
51 {
52 "file": "path",
53 "issue": "what spec must clarify or change",
54 "evidence": "prototype path, command, compiler/test result",
55 "severity": "P0|P1|P2|P3"
56 }
57 ],
58 "prototypeArtifacts": ["paths created"],
59 "commands": ["commands run"],
60 "nextSteps": ["concrete spec or design actions"]
61}
45Use this shape:
47```markdown
48## Status
49complete | blocked | failed
51## Proved
52- spec claims supported by prototype evidence
54## Disproved
55- spec claims contradicted by prototype evidence
57## Spec Issues
58- `path`
59 - Issue: what spec must clarify or change
60 - Evidence: prototype path, command, compiler/test result
61 - Severity: P0 | P1 | P2 | P3
63## Prototype Artifacts
64- paths created
66## Commands
67- commands run
69## Next Steps
70- concrete spec or design actions
6271```

.pi/prompts/sabotnik.md

Modified

+26 / −23 text lines

6060## Output Contract
62Return structured JSON:
62Return Markdown, not JSON.
64```json
65{
66 "status": "complete|blocked|failed",
67 "slopFindings": [
68 {
69 "path": "file",
70 "pattern": "LLM slop pattern found",
71 "evidence": "specific code symptom",
72 "severity": "P0|P1|P2|P3"
73 }
74 ],
75 "expertRewrite": [
76 {
77 "path": "file",
78 "change": "expert Rust improvement",
79 "why": "type safety, dependability, clarity, or testability gain"
80 }
81 ],
82 "risks": ["behavior, API, security, or migration risks"],
83 "tests": ["tests run or needed"],
84 "nextSteps": ["remaining cleanup"]
85}
64Use this shape:
66```markdown
67## Status
68complete | blocked | failed
70## Slop Findings
71- `file`
72 - Pattern: LLM slop pattern found
73 - Evidence: specific code symptom
74 - Severity: P0 | P1 | P2 | P3
76## Expert Rewrite
77- `file`
78 - Change: expert Rust improvement
79 - Why: type safety, dependability, clarity, or testability gain
81## Risks
82- behavior, API, security, or migration risks
84## Tests
85- tests run or needed
87## Next Steps
88- remaining cleanup
8689```

.pi/prompts/smith.md

Modified

+19 / −10 text lines

2323Stop and ask on architectural decisions.
2424Do not guess.
26Output structured JSON at end:
26End with Markdown, not JSON:
28```json
29{
30 "status": "complete | blocked | needs-user-input",
31 "summary": "...",
32 "files": ["docs/SPEC.md"],
33 "actions": ["Updated SPEC"],
34 "notDone": ["..."],
35 "nextSteps": ["..."]
36}
28```markdown
29## Status
30complete | blocked | needs-user-input
32## Summary
33...
35## Files
36- `docs/SPEC.md`
38## Actions
39- Updated SPEC
41## Not Done
42- ...
44## Next Steps
45- ...
3746```