gentle-pi 0.1.0
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.
- package/README.md +66 -0
- package/assets/agents/sdd-apply.md +71 -0
- package/assets/agents/sdd-archive.md +14 -0
- package/assets/agents/sdd-design.md +14 -0
- package/assets/agents/sdd-explore.md +14 -0
- package/assets/agents/sdd-init.md +14 -0
- package/assets/agents/sdd-onboard.md +15 -0
- package/assets/agents/sdd-proposal.md +14 -0
- package/assets/agents/sdd-spec.md +14 -0
- package/assets/agents/sdd-tasks.md +61 -0
- package/assets/agents/sdd-verify.md +55 -0
- package/assets/chains/sdd-full.chain.md +75 -0
- package/assets/chains/sdd-plan.chain.md +35 -0
- package/assets/chains/sdd-verify.chain.md +27 -0
- package/assets/orchestrator.md +191 -0
- package/assets/support/strict-tdd-verify.md +269 -0
- package/assets/support/strict-tdd.md +364 -0
- package/extensions/gentle-ai.ts +157 -0
- package/extensions/sdd-init.ts +83 -0
- package/extensions/skill-registry.ts +267 -0
- package/package.json +47 -0
- package/prompts/cl.md +54 -0
- package/prompts/is.md +25 -0
- package/prompts/pr.md +41 -0
- package/prompts/wr.md +31 -0
- package/skills/branch-pr/SKILL.md +202 -0
- package/skills/chained-pr/SKILL.md +50 -0
- package/skills/chained-pr/references/chaining-details.md +99 -0
- package/skills/cognitive-doc-design/SKILL.md +81 -0
- package/skills/comment-writer/SKILL.md +74 -0
- package/skills/gentle-ai/SKILL.md +43 -0
- package/skills/issue-creation/SKILL.md +223 -0
- package/skills/judgment-day/SKILL.md +52 -0
- package/skills/judgment-day/references/prompts-and-formats.md +75 -0
- package/skills/work-unit-commits/SKILL.md +86 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: work-unit-commits
|
|
3
|
+
description: "Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code."
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: gentleman-programming
|
|
7
|
+
version: "1.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
Load this skill when deciding what belongs in each commit or PR.
|
|
13
|
+
|
|
14
|
+
Use it for:
|
|
15
|
+
|
|
16
|
+
- Splitting a feature into reviewable work.
|
|
17
|
+
- Preparing commits before opening a PR.
|
|
18
|
+
- Turning a large change into chained or stacked PRs.
|
|
19
|
+
- Keeping reviewer cognitive load healthy.
|
|
20
|
+
- Applying SDD tasks without accidentally producing a PR above 400 changed lines.
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
| Rule | Requirement |
|
|
25
|
+
|------|-------------|
|
|
26
|
+
| Commit by work unit | A commit represents a deliverable behavior, fix, migration, or docs unit. |
|
|
27
|
+
| Do not commit by file type | Avoid `models`, then `services`, then `tests` if none works alone. |
|
|
28
|
+
| Keep tests with code | Tests belong in the same commit as the behavior they verify. |
|
|
29
|
+
| Keep docs with the user-visible change | Docs belong with the feature or workflow they explain. |
|
|
30
|
+
| Tell a story | A reviewer should understand why each commit exists from its diff and message. |
|
|
31
|
+
| Future PR-ready | Each commit should be a candidate chained PR when the change grows. |
|
|
32
|
+
| SDD workload guard | If SDD tasks forecast a >400-line change, group commits into chained PR slices before implementation. |
|
|
33
|
+
|
|
34
|
+
## Work Unit Checklist
|
|
35
|
+
|
|
36
|
+
Before committing, confirm:
|
|
37
|
+
|
|
38
|
+
- [ ] The commit has one clear purpose.
|
|
39
|
+
- [ ] The repo still makes sense after applying only this commit.
|
|
40
|
+
- [ ] Tests or docs for this unit are included when relevant.
|
|
41
|
+
- [ ] Rollback is reasonable without reverting unrelated work.
|
|
42
|
+
- [ ] The commit message explains the outcome, not the file list.
|
|
43
|
+
|
|
44
|
+
## Split Examples
|
|
45
|
+
|
|
46
|
+
| Weak split | Better work-unit split |
|
|
47
|
+
|------------|------------------------|
|
|
48
|
+
| `add models` | `feat(auth): add token validation domain model and tests` |
|
|
49
|
+
| `add services` | `feat(auth): wire token validation into login flow` |
|
|
50
|
+
| `add tests` | Tests included with each behavior commit |
|
|
51
|
+
| `update docs` | Docs included with the user-facing change they explain |
|
|
52
|
+
|
|
53
|
+
## PR Relationship
|
|
54
|
+
|
|
55
|
+
Use work-unit commits as the foundation for chained PRs:
|
|
56
|
+
|
|
57
|
+
1. Build the smallest independent work unit.
|
|
58
|
+
2. Include verification for that unit.
|
|
59
|
+
3. Commit it with a Conventional Commit message.
|
|
60
|
+
4. If the PR approaches 400 changed lines, promote commits or groups of commits into chained PRs.
|
|
61
|
+
|
|
62
|
+
## SDD Relationship
|
|
63
|
+
|
|
64
|
+
When `sdd-tasks` produces a Review Workload Forecast:
|
|
65
|
+
|
|
66
|
+
- Low risk: keep work-unit commits inside one PR.
|
|
67
|
+
- Medium risk: commit by work unit and monitor changed lines before PR creation.
|
|
68
|
+
- High risk: follow SDD `delivery_strategy` — ask on `ask-on-risk`, auto-slice on `auto-chain`, require `size:exception` on over-budget `single-pr`, or record accepted `size:exception` on `exception-ok`.
|
|
69
|
+
|
|
70
|
+
Each SDD work unit should map cleanly to a commit or PR with:
|
|
71
|
+
|
|
72
|
+
- clear start state,
|
|
73
|
+
- clear finished state,
|
|
74
|
+
- verification in the same unit,
|
|
75
|
+
- rollback that does not remove unrelated work.
|
|
76
|
+
|
|
77
|
+
## Commands
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Review the story before committing
|
|
81
|
+
git diff --stat
|
|
82
|
+
git diff --cached --stat
|
|
83
|
+
|
|
84
|
+
# Check recent commit style
|
|
85
|
+
git log --oneline -5
|
|
86
|
+
```
|