@esoteric-logic/praxis-harness 1.2.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +14 -34
  2. package/base/CLAUDE.md +23 -25
  3. package/base/hooks/auto-format.sh +40 -0
  4. package/base/hooks/identity-check.sh +55 -0
  5. package/base/hooks/secret-scan.sh +1 -1
  6. package/base/hooks/settings-hooks.json +61 -0
  7. package/base/hooks/vault-checkpoint.sh +1 -9
  8. package/base/rules/context-management.md +3 -50
  9. package/base/rules/execution-loop.md +41 -61
  10. package/base/rules/git-workflow.md +7 -7
  11. package/base/rules/profile.md +10 -7
  12. package/base/rules/vault.md +13 -4
  13. package/base/{rules/architecture.md → skills/architecture-patterns/SKILL.md} +12 -14
  14. package/base/skills/code-gc/SKILL.md +0 -1
  15. package/base/{rules/communication.md → skills/communication-standards/SKILL.md} +13 -12
  16. package/base/{commands/context-reset.md → skills/context-reset/SKILL.md} +2 -1
  17. package/base/skills/context7-lookup/SKILL.md +53 -0
  18. package/base/{commands/debug.md → skills/debug/SKILL.md} +6 -4
  19. package/base/{commands/discover.md → skills/discover/SKILL.md} +4 -2
  20. package/base/skills/discuss/SKILL.md +96 -0
  21. package/base/{commands/gsd-execute.md → skills/execute/SKILL.md} +9 -12
  22. package/base/skills/fast/SKILL.md +28 -0
  23. package/base/{commands/kit.md → skills/kit/SKILL.md} +4 -3
  24. package/base/skills/managing-git-identities/SKILL.md +98 -0
  25. package/base/skills/next/SKILL.md +33 -0
  26. package/base/{commands/plan.md → skills/plan/SKILL.md} +40 -10
  27. package/base/skills/plan-writer/SKILL.md +72 -0
  28. package/base/skills/pre-commit-lint/SKILL.md +7 -5
  29. package/base/skills/quick/SKILL.md +42 -0
  30. package/base/{commands/review.md → skills/review/SKILL.md} +34 -10
  31. package/base/{commands/risk.md → skills/risk/SKILL.md} +2 -0
  32. package/base/skills/scaffold-exist/SKILL.md +9 -8
  33. package/base/skills/scaffold-new/SKILL.md +1 -2
  34. package/base/skills/scaffold-new/references/claude-progress-template.json +0 -10
  35. package/base/skills/scaffold-new/references/repo-CLAUDE-md-template.md +0 -1
  36. package/base/skills/secret-scan/SKILL.md +59 -0
  37. package/base/skills/session-retro/SKILL.md +3 -20
  38. package/base/{commands/ship.md → skills/ship/SKILL.md} +4 -2
  39. package/base/skills/{code-simplifier → simplify}/SKILL.md +6 -7
  40. package/base/{commands/spec.md → skills/spec/SKILL.md} +15 -7
  41. package/base/{commands/standup.md → skills/standup/SKILL.md} +2 -10
  42. package/base/skills/status-update/SKILL.md +50 -0
  43. package/base/skills/vault-gc/SKILL.md +0 -1
  44. package/base/{commands/gsd-verify.md → skills/verify/SKILL.md} +9 -6
  45. package/base/skills/verify-app/SKILL.md +5 -6
  46. package/kits/infrastructure/KIT.md +2 -15
  47. package/kits/web-designer/KIT.md +4 -17
  48. package/package.json +2 -3
  49. package/scripts/lint-harness.sh +7 -3
  50. package/templates/claude-progress.json +0 -10
  51. package/base/commands/gsd-discuss.md +0 -53
  52. package/base/commands/ralph.md +0 -110
  53. package/base/commands/simplify.md +0 -15
  54. package/base/rules/code-quality.md +0 -65
  55. package/base/rules/security.md +0 -40
  56. package/base/skills/prd-writer/SKILL.md +0 -108
  57. package/base/skills/prd-writer/references/prd-template.md +0 -22
  58. package/base/skills/subagent-review/SKILL.md +0 -126
@@ -1,126 +0,0 @@
1
- ---
2
- name: subagent-review
3
- disable-model-invocation: true
4
- description: Reusable code review subagent. Accepts a diff, optional spec, and rules
5
- files. Launches a subagent with zero conversation history to review for bugs,
6
- security, and convention violations. Called by /review and gsd-verify — never
7
- invoked directly by users.
8
- allowed-tools: Bash, Read
9
- ---
10
-
11
- # subagent-review Skill
12
-
13
- ## Purpose
14
- Encapsulates the Self-Review Protocol as a reusable skill. Callers provide the
15
- diff and context; this skill launches the subagent and returns structured findings.
16
-
17
- ## Inputs
18
-
19
- | Input | Required | Default | Description |
20
- |-------|----------|---------|-------------|
21
- | diff | Yes | — | The diff to review (string or file path) |
22
- | spec_path | No | — | Path to the SPEC/plan for context |
23
- | rules_files | No | `CLAUDE.md`, `coding.md`, `security.md` | Rules files to load |
24
-
25
- ## DONE-WHEN
26
- - [ ] Subagent launched with ONLY diff + spec + rules (zero conversation history)
27
- - [ ] Findings returned in structured format
28
- - [ ] Each finding rated Critical / Major / Minor
29
-
30
- ## NON-GOALS
31
- - Does NOT fix findings — callers handle remediation
32
- - Does NOT write to vault — callers decide what to persist
33
- - Does NOT interact with the user — callers present findings
34
-
35
- ---
36
-
37
- ## Phase 1 — Validate Inputs
38
-
39
- - Diff must be non-empty. If empty: return `{ "findings": [], "status": "empty_diff" }`.
40
- - If spec_path provided: verify the file exists. If not: proceed without spec.
41
- - If rules_files not provided: default to:
42
- - `~/.claude/CLAUDE.md`
43
- - `~/.claude/rules/coding.md`
44
- - `~/.claude/rules/security.md`
45
-
46
- ## Phase 2 — Compose Subagent Prompt
47
-
48
- Build the subagent prompt from these components ONLY:
49
-
50
- ```
51
- You are a critical code reviewer. Review the following diff.
52
-
53
- ## Rules
54
- {contents of each rules file}
55
-
56
- ## SPEC (if available)
57
- {contents of spec file, or "No spec provided."}
58
-
59
- ## Diff
60
- {the diff}
61
-
62
- ## Instructions
63
- Review for:
64
- 1. Bugs and logic errors
65
- 2. Edge cases and off-by-one errors
66
- 3. Error handling gaps (missing catches, swallowed errors)
67
- 4. Security issues (injection, secrets, auth gaps)
68
- 5. Convention violations (from the Rules above)
69
-
70
- Rate each finding: Critical / Major / Minor.
71
- Format each as: `{file}:{line} — {severity} — {description} — {fix}`
72
-
73
- If the diff is clean, say "No findings."
74
- ```
75
-
76
- Do NOT include any conversation history, project context, or user preferences
77
- beyond the explicitly provided inputs.
78
-
79
- ## Phase 3 — Launch Subagent
80
-
81
- - Launch a subagent (Task tool) with the composed prompt.
82
- - The subagent runs in isolation — fresh context, no memory of the current session.
83
-
84
- ## Phase 4 — Return Structured Findings
85
-
86
- Parse the subagent output into:
87
-
88
- ```json
89
- {
90
- "status": "findings" | "clean" | "empty_diff",
91
- "critical": [{ "file": "", "line": 0, "description": "", "fix": "" }],
92
- "major": [{ "file": "", "line": 0, "description": "", "fix": "" }],
93
- "minor": [{ "file": "", "line": 0, "description": "", "fix": "" }],
94
- "summary": "1 critical, 2 major, 0 minor"
95
- }
96
- ```
97
-
98
- Return this structure to the caller. The caller decides:
99
- - Whether to present findings to the user
100
- - Whether to trigger remediation
101
- - Whether to re-run (max 3 rounds, managed by caller)
102
-
103
- ## Callers
104
-
105
- | Caller | Context |
106
- |--------|---------|
107
- | `/review` (commit 6) | Manual review trigger, writes summary to vault |
108
- | `gsd-verify` Step 5 | Post-milestone Self-Review Protocol |
109
- | `execution-loop.md` | Self-Review Protocol description (future: replace inline with skill ref) |
110
-
111
- Note: `execution-loop.md` and `gsd-verify.md` still contain inline descriptions of the
112
- review pattern. Future cleanup can replace those with a reference to this skill. Both
113
- approaches produce identical behavior — the duplication is accepted for now.
114
-
115
- ## Error Handling
116
-
117
- | Condition | Action |
118
- |-----------|--------|
119
- | Empty diff | Return `empty_diff` status immediately |
120
- | Subagent fails to launch | Return error to caller, do not retry |
121
- | Subagent output unparseable | Return raw output as single Minor finding |
122
- | Rules file missing | Warn, proceed with available rules |
123
-
124
- ## Removal Condition
125
- Remove when code review is fully handled by a dedicated external service
126
- integrated via MCP, making subagent-based review redundant.