@juancr11/sibu 0.1.0 → 0.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juancr11/sibu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "CLI for setting up a local AI-augmented development workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,15 +27,17 @@
|
|
|
27
27
|
"build": "tsc && chmod +x bin/sibu.js",
|
|
28
28
|
"check": "tsc --noEmit",
|
|
29
29
|
"verify": "pnpm build && pnpm check && pnpm test",
|
|
30
|
+
"admin:changelog": "node ./bin/admin/changelog.js",
|
|
30
31
|
"dev:link": "pnpm install && pnpm build && pnpm link --global",
|
|
31
32
|
"dev:unlink": "pnpm unlink --global sibu",
|
|
32
33
|
"prepack": "pnpm run build",
|
|
33
34
|
"smoke:init": "node ./bin/sibu.js init",
|
|
34
|
-
"test": "pnpm build && node --test bin/shared/catalog.test.js bin/shared/npm-version.test.js bin/shared/prompts.test.js bin/shared/workflow-targets.test.js bin/shared/workflow-mutation-readiness.test.js bin/features/doctor-project/handler.test.js bin/features/use-skill/handler.test.js bin/features/stop-managing-file/handler.test.js",
|
|
35
|
+
"test": "pnpm build && node --test bin/shared/catalog.test.js bin/shared/npm-version.test.js bin/shared/prompts.test.js bin/shared/workflow-targets.test.js bin/shared/workflow-mutation-readiness.test.js bin/admin/generate-changelog/handler.test.js bin/admin/release.test.js bin/admin/release-workflow/handler.test.js bin/admin/release-workflow/package-json.test.js bin/features/doctor-project/handler.test.js bin/features/use-skill/handler.test.js bin/features/stop-managing-file/handler.test.js",
|
|
35
36
|
"validate:packed-runtime": "node ./scripts/validate-packed-cli-runtime.mjs",
|
|
36
37
|
"validate:doctor-version-advisory": "pnpm build && node ./scripts/validate-doctor-version-advisory.mjs",
|
|
37
38
|
"validate:post-update-doctor-drift": "pnpm build && node ./scripts/validate-post-update-doctor-drift.mjs",
|
|
38
|
-
"validate:release": "pnpm verify && npm pack && pnpm run validate:packed-runtime && pnpm run validate:doctor-version-advisory && pnpm run validate:post-update-doctor-drift"
|
|
39
|
+
"validate:release": "pnpm verify && npm pack && pnpm run validate:packed-runtime && pnpm run validate:doctor-version-advisory && pnpm run validate:post-update-doctor-drift",
|
|
40
|
+
"admin:release": "node ./bin/admin/release.js"
|
|
39
41
|
},
|
|
40
42
|
"keywords": [
|
|
41
43
|
"ai",
|
package/templates/AGENTS.md
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
## Agent-specific instructions
|
|
15
15
|
|
|
16
|
-
- Before any task that
|
|
16
|
+
- Before any task that writes or modifies code, propose a brief plan and wait for user confirmation once per requested task.
|
|
17
|
+
- For read-only work, research, planning, documentation-only edits, or other non-code changes, do not ask for confirmation unless the action is destructive, risky, ambiguous, or explicitly requires user approval.
|
|
17
18
|
- After confirmation, proceed with all agreed in-scope changes without re-asking.
|
|
18
19
|
- Ask again only if the scope changes materially, the approach becomes materially more complex or risky, or the user explicitly asks to review before continuing.
|
|
19
20
|
- Use Conventional Commits 1.0.0 for commit messages.
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
- For requests to create, revise, or clarify a technical design, implementation-oriented design doc, architecture approach, technical tradeoffs, technical risks, or implementation plan for an approved feature, use `technical-design-writer`.
|
|
34
35
|
- For requests to create Epics, User Stories, Scrum planning artifacts, backlog slices, or delivery plans from an approved feature brief and technical design, use `scrum-master-planner`.
|
|
35
36
|
- For requests to turn a specific User Story into an implementation checklist, coding plan, step-by-step execution plan, or baby-step plan, use `ai-implementation-planner`.
|
|
36
|
-
- For requests to implement, execute, continue, or work through an existing story implementation plan under `docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.impl_plan/`, use `ai-implementation-plan-executor
|
|
37
|
+
- For requests to implement, execute, continue, or work through a specific User Story under `docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.md` or an existing story implementation plan under `docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.impl_plan/`, use `ai-implementation-plan-executor`; the executor must stop and direct the user to `ai-implementation-planner` when the story plan is missing.
|
|
37
38
|
{{OPTIONAL_SKILL_ROUTING}}
|
|
38
39
|
|
|
39
40
|
## Sibu maintenance
|
package/templates/manifest.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"templateVersion": "
|
|
2
|
+
"templateVersion": "45",
|
|
3
3
|
"templates": {
|
|
4
4
|
"AGENTS.md": {
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "20",
|
|
6
6
|
"description": "Project-level agent instructions and Sibu maintenance guidance.",
|
|
7
7
|
"changes": [
|
|
8
|
-
"
|
|
8
|
+
"Routes User Story implementation requests to the AI implementation plan executor, even when the story plan may still be missing.",
|
|
9
|
+
"Clarifies that the executor should direct users to the AI implementation planner when a User Story has no implementation plan."
|
|
9
10
|
]
|
|
10
11
|
},
|
|
11
12
|
".codex/config.toml": {
|
|
@@ -118,11 +119,12 @@
|
|
|
118
119
|
]
|
|
119
120
|
},
|
|
120
121
|
"skills/ai-implementation-plan-executor/SKILL.md": {
|
|
121
|
-
"version": "
|
|
122
|
+
"version": "5",
|
|
122
123
|
"description": "Mandatory AI implementation plan executor skill for implementing existing story implementation plans one reviewed step at a time.",
|
|
123
124
|
"changes": [
|
|
124
|
-
"
|
|
125
|
-
"
|
|
125
|
+
"Clarifies that missing story implementation plans must be created with the AI implementation planner before execution.",
|
|
126
|
+
"Allows agents to begin the first unapproved implementation step immediately when a valid plan exists, while preserving review approval between steps.",
|
|
127
|
+
"Clarifies that after user approval, agents should mark the step approved, commit it, and continue to the next step without another pre-implementation confirmation."
|
|
126
128
|
]
|
|
127
129
|
}
|
|
128
130
|
}
|
|
@@ -48,11 +48,18 @@ Inspect existing code, tests, scripts, and docs only as needed for the current s
|
|
|
48
48
|
|
|
49
49
|
## Hard start rule
|
|
50
50
|
|
|
51
|
-
If the `.impl_plan/` folder does not exist, is empty, or has no ordered `.md` step files:
|
|
51
|
+
If the user provides a User Story file and the matching `.impl_plan/` folder does not exist, is empty, or has no ordered `.md` step files:
|
|
52
52
|
|
|
53
53
|
1. Stop.
|
|
54
54
|
2. Tell the user the implementation plan is missing.
|
|
55
|
-
3. Instruct the user to use `ai-implementation-planner` to create the implementation plan first.
|
|
55
|
+
3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create the implementation plan first.
|
|
56
|
+
4. Do not infer steps from the story or technical design.
|
|
57
|
+
|
|
58
|
+
If the user provides an `.impl_plan/` folder and it does not exist, is empty, or has no ordered `.md` step files:
|
|
59
|
+
|
|
60
|
+
1. Stop.
|
|
61
|
+
2. Tell the user the implementation plan is missing or invalid.
|
|
62
|
+
3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create or repair the implementation plan first.
|
|
56
63
|
4. Do not infer steps from the story or technical design.
|
|
57
64
|
|
|
58
65
|
If required source context is missing:
|
|
@@ -66,6 +73,8 @@ If required source context is missing:
|
|
|
66
73
|
|
|
67
74
|
Work on exactly one step at a time.
|
|
68
75
|
|
|
76
|
+
When a valid implementation plan exists, begin implementing the first unapproved step immediately. Do not ask for pre-implementation confirmation before changing code for that step. This is an explicit exception to repository-level instructions that normally require confirmation before code changes: selecting this executor skill and providing a valid plan is the user's confirmation to implement the current step.
|
|
77
|
+
|
|
69
78
|
A step file is considered approved only when it contains this section:
|
|
70
79
|
|
|
71
80
|
```md
|
|
@@ -78,7 +87,7 @@ When starting or resuming a plan:
|
|
|
78
87
|
|
|
79
88
|
1. Read all step files in filename order.
|
|
80
89
|
2. Identify the first step file that is not approved.
|
|
81
|
-
3. Implement only that step.
|
|
90
|
+
3. Implement only that step immediately, without asking for confirmation first.
|
|
82
91
|
4. Run the validation named in that step when practical.
|
|
83
92
|
5. Report what changed, validation results, and any risks.
|
|
84
93
|
6. Stop and wait for explicit user confirmation before moving to the next step.
|
|
@@ -103,10 +112,22 @@ When the user explicitly approves the current step, update that step file by add
|
|
|
103
112
|
|
|
104
113
|
Before writing the approval marker, identify the current Git user with `git config user.name`; if it is unavailable, use `git config user.email`. Use that value for `Approved by`. After writing the approval marker, commit all changes for the approved step before continuing. Use a Conventional Commits 1.0.0 message that describes the completed step. If the commit fails, stop and report the failure instead of continuing.
|
|
105
114
|
|
|
106
|
-
Then continue with the next unapproved step only after the approval marker is written and the approved step changes are committed.
|
|
115
|
+
Then continue with the next unapproved step immediately, without asking for another pre-implementation confirmation, only after the approval marker is written and the approved step changes are committed.
|
|
107
116
|
|
|
108
117
|
If the user asks to continue without clearly approving the current step, ask for explicit approval before marking it approved, committing, or moving on.
|
|
109
118
|
|
|
119
|
+
## Epic continuation check
|
|
120
|
+
|
|
121
|
+
When all step files in the current story implementation plan are approved and committed:
|
|
122
|
+
|
|
123
|
+
1. Inspect the current Epic's `stories/` folder in filename order.
|
|
124
|
+
2. Identify whether there is a next User Story after the completed story.
|
|
125
|
+
3. If a next User Story exists and its `.impl_plan/` folder exists with ordered step files, ask the user whether they want to implement that next story.
|
|
126
|
+
4. If a next User Story exists but its `.impl_plan/` folder is missing or empty, ask the user whether they want to plan that next story with `ai-implementation-planner`.
|
|
127
|
+
5. If there is no next User Story in the Epic, tell the user the Epic appears ready.
|
|
128
|
+
|
|
129
|
+
Do not automatically start planning or implementing the next story. This check is a handoff prompt after the current story is complete, not permission to continue without the user's explicit direction.
|
|
130
|
+
|
|
110
131
|
## Implementation rules
|
|
111
132
|
|
|
112
133
|
Do:
|
|
@@ -136,3 +157,9 @@ After implementing one step, briefly report:
|
|
|
136
157
|
- validation run and result
|
|
137
158
|
- any risks, blockers, or follow-up questions
|
|
138
159
|
- that you are waiting for user approval before marking the step approved, committing it, and continuing to the next step
|
|
160
|
+
|
|
161
|
+
After approving and committing the final step in a story implementation plan, also briefly report the Epic continuation check result:
|
|
162
|
+
|
|
163
|
+
- next story ready to implement
|
|
164
|
+
- next story needs an implementation plan
|
|
165
|
+
- or Epic appears ready
|