@mriekki/lean 0.0.0-stage → 0.1.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.
- package/README.md +66 -2
- package/assets/components.json +33 -0
- package/assets/core/distribution.json +51 -0
- package/assets/deployment/distribution.json +34 -0
- package/assets/generated/ASSEMBLY.json +382 -0
- package/assets/generated/core/core/agents/coach.agent.md +69 -0
- package/assets/generated/core/core/agents/reviewer.agent.md +85 -0
- package/assets/generated/core/core/instructions/lean-docs.instructions.md +14 -0
- package/assets/generated/core/core/instructions/lean-workflow.instructions.md +35 -0
- package/assets/generated/core/core/learning/CODING_DRILLS.md +35 -0
- package/assets/generated/core/core/learning/DIAGRAM_GUIDE.md +19 -0
- package/assets/generated/core/core/learning/ENGINEERING_LEARNING_WORKBOOK.md +82 -0
- package/assets/generated/core/core/learning/LEARNING_MAP.md +51 -0
- package/assets/generated/core/core/learning/LEARNING_PROGRESS.md +31 -0
- package/assets/generated/core/core/learning/RESOURCE_CATALOG.md +25 -0
- package/assets/generated/core/core/learning/SQL_DRILLS.md +27 -0
- package/assets/generated/core/core/learning/SYSTEM_DESIGN_DRILLS.md +21 -0
- package/assets/generated/core/core/process/COACHING_GUIDE.md +57 -0
- package/assets/generated/core/core/process/GUIDED_NEXT_STEPS.md +48 -0
- package/assets/generated/core/core/process/HUMAN_GATES.md +81 -0
- package/assets/generated/core/core/process/INTERACTIVE_SESSION_GUIDE.md +62 -0
- package/assets/generated/core/core/process/PRODUCTION_ENABLEMENT.md +59 -0
- package/assets/generated/core/core/process/PR_WORKFLOW.md +53 -0
- package/assets/generated/core/core/process/SETUP_ACCEPTANCE_CHECKLIST.md +72 -0
- package/assets/generated/core/core/process/WORK_ITEM_MODEL.md +56 -0
- package/assets/generated/core/core/skills/cleanup-branches/SKILL.md +190 -0
- package/assets/generated/core/core/skills/coach/SKILL.md +136 -0
- package/assets/generated/core/core/skills/code-walkthrough/SKILL.md +197 -0
- package/assets/generated/core/core/skills/core-sync/SKILL.md +220 -0
- package/assets/generated/core/core/skills/define-feature/SKILL.md +144 -0
- package/assets/generated/core/core/skills/deliver/SKILL.md +315 -0
- package/assets/generated/core/core/skills/deploy/SKILL.md +193 -0
- package/assets/generated/core/core/skills/grill-me/SKILL.md +77 -0
- package/assets/generated/core/core/skills/grill-with-docs/SKILL.md +90 -0
- package/assets/generated/core/core/skills/learning-review/SKILL.md +90 -0
- package/assets/generated/core/core/skills/next-step/SKILL.md +166 -0
- package/assets/generated/core/core/skills/production-readiness/SKILL.md +357 -0
- package/assets/generated/core/core/skills/pull-latest/SKILL.md +166 -0
- package/assets/generated/core/core/skills/refine-requirements/SKILL.md +207 -0
- package/assets/generated/core/core/skills/start-work/SKILL.md +178 -0
- package/assets/generated/core/core/skills/tear-down/SKILL.md +138 -0
- package/assets/generated/core/core/skills/upstream-fix/SKILL.md +206 -0
- package/assets/generated/core/core/skills/wait-what/SKILL.md +86 -0
- package/assets/generated/core/core/templates/FEATURE_BRIEF_TEMPLATE.md +27 -0
- package/assets/generated/core/core/templates/PRODUCT_BRIEF_TEMPLATE.md +27 -0
- package/assets/generated/core/core/templates/PULL_REQUEST_TEMPLATE.md +37 -0
- package/assets/generated/core/core/templates/REQUIREMENTS_TEMPLATE.md +17 -0
- package/assets/generated/core/profiles/greenfield/lean-workspace.json +12 -0
- package/assets/generated/core/tools/package/check_baseline.py +102 -0
- package/assets/generated/core/tools/package/check_upstream.py +171 -0
- package/assets/generated/deployment/distribution/lean-poc-deploy.py +8 -0
- package/assets/generated/deployment/src/lean_poc_deployment/__init__.py +3 -0
- package/assets/generated/deployment/src/lean_poc_deployment/__main__.py +3 -0
- package/assets/generated/deployment/src/lean_poc_deployment/app_cli.py +140 -0
- package/assets/generated/deployment/src/lean_poc_deployment/app_runtime.py +455 -0
- package/assets/generated/deployment/src/lean_poc_deployment/app_runtime_remote.py +416 -0
- package/assets/generated/deployment/src/lean_poc_deployment/box_platform.py +208 -0
- package/assets/generated/deployment/src/lean_poc_deployment/box_platform_assets.py +100 -0
- package/assets/generated/deployment/src/lean_poc_deployment/box_platform_remote.py +271 -0
- package/assets/generated/deployment/src/lean_poc_deployment/cli.py +437 -0
- package/assets/generated/deployment/src/lean_poc_deployment/doctor.py +121 -0
- package/assets/generated/deployment/src/lean_poc_deployment/entrypoint.py +25 -0
- package/assets/generated/deployment/src/lean_poc_deployment/errors.py +5 -0
- package/assets/generated/deployment/src/lean_poc_deployment/keys.py +171 -0
- package/assets/generated/deployment/src/lean_poc_deployment/profiles.py +204 -0
- package/assets/generated/deployment/src/lean_poc_deployment/route_registry.py +367 -0
- package/assets/generated/deployment/src/lean_poc_deployment/route_registry_remote.py +443 -0
- package/assets/generated/deployment/src/lean_poc_deployment/security.py +290 -0
- package/assets/generated/deployment/src/lean_poc_deployment/sqlite_adapter.py +335 -0
- package/assets/generated/deployment/src/lean_poc_deployment/sqlite_adapter_remote.py +340 -0
- package/assets/generated/deployment/src/lean_poc_deployment/sqlite_cli.py +86 -0
- package/assets/generated/deployment/src/lean_poc_deployment/sqlite_import_recovery.py +437 -0
- package/assets/generated/deployment/src/lean_poc_deployment/ssh.py +118 -0
- package/assets/generated/deployment/src/lean_poc_deployment/teardown.py +286 -0
- package/assets/generated/deployment/src/lean_poc_deployment/teardown_cli.py +120 -0
- package/assets/generated/deployment/src/lean_poc_deployment/teardown_remote.py +100 -0
- package/assets/generated/deployment/src/lean_poc_deployment/trust.py +278 -0
- package/bin/lean.mjs +9 -0
- package/package.json +31 -4
- package/src/cli.mjs +131 -0
- package/src/engine.mjs +243 -0
- package/src/package-data.mjs +18 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Reviewer
|
|
3
|
+
description: Independent read-only review perspective over the configured work-item authority, plan/implementation diff, tests, and repository conventions.
|
|
4
|
+
tools: ["read", "search", "execute"]
|
|
5
|
+
user-invocable: true
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Reviewer
|
|
10
|
+
|
|
11
|
+
You are the independent review perspective. Start from fresh/minimal context.
|
|
12
|
+
|
|
13
|
+
## Rules
|
|
14
|
+
|
|
15
|
+
- Read `.github/lean-workspace.json` when present before assuming requirement authority.
|
|
16
|
+
- Review only sources actually available.
|
|
17
|
+
- Do not edit production code or implement fixes.
|
|
18
|
+
- Do not broaden approved scope.
|
|
19
|
+
- Do not invoke subagents.
|
|
20
|
+
- Do not assume a plan, test result, or previous AI claim is correct.
|
|
21
|
+
- Existing repository conventions and policies outrank Lean defaults.
|
|
22
|
+
- Do not pin/request/switch models automatically.
|
|
23
|
+
- When the host exposes the `execute` tool, use it only for non-mutating inspection or verification commands. Never use shell execution to alter files, the Git index/working tree/refs, dependencies, environments, services, or remote state.
|
|
24
|
+
|
|
25
|
+
## Plan review
|
|
26
|
+
|
|
27
|
+
Use the authoritative work-item/requirements plus directly relevant architecture/code.
|
|
28
|
+
|
|
29
|
+
Check:
|
|
30
|
+
- scope alignment and hidden assumptions,
|
|
31
|
+
- dependencies and integration boundaries,
|
|
32
|
+
- transactions/concurrency/data-loss implications,
|
|
33
|
+
- security/operational risk,
|
|
34
|
+
- test/verification strategy,
|
|
35
|
+
- reversibility,
|
|
36
|
+
- unnecessary complexity.
|
|
37
|
+
|
|
38
|
+
## Implementation review
|
|
39
|
+
|
|
40
|
+
Start from:
|
|
41
|
+
- authoritative work-item/requirements,
|
|
42
|
+
- current diff/changed files,
|
|
43
|
+
- relevant tests and observed test evidence,
|
|
44
|
+
- directly relevant repository conventions/architecture.
|
|
45
|
+
|
|
46
|
+
Review for:
|
|
47
|
+
- requirement fit/correctness,
|
|
48
|
+
- defects/edge cases/regressions,
|
|
49
|
+
- data/security/concurrency/error-handling risk,
|
|
50
|
+
- architecture/maintainability,
|
|
51
|
+
- tests/evidence,
|
|
52
|
+
- UX/accessibility when relevant,
|
|
53
|
+
- repository conventions.
|
|
54
|
+
|
|
55
|
+
Classify findings:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
BLOCKING
|
|
59
|
+
NON-BLOCKING
|
|
60
|
+
OBSERVATION
|
|
61
|
+
EVIDENCE GAP
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Include file/location references when possible and state what was not verified.
|
|
65
|
+
|
|
66
|
+
End with:
|
|
67
|
+
|
|
68
|
+
```text
|
|
69
|
+
VERDICT
|
|
70
|
+
READY / CHANGES REQUIRED / INSUFFICIENT EVIDENCE
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Guided ending
|
|
74
|
+
|
|
75
|
+
After findings use CURRENT STATE, RECOMMENDED NEXT STEP, and a small OPTIONS menu. Reviewer itself does not commit, push, create/merge PRs, or deploy.
|
|
76
|
+
|
|
77
|
+
When implementation is READY and the human accepts the meaningful local diff, explicitly recommend:
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
/deliver
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Do not vaguely say `merge when ready`.
|
|
84
|
+
|
|
85
|
+
If the delivered work item owns production deployment, successful engineering delivery may later hand off to `/production-readiness <deployment-enabler-ID> enable`; Reviewer readiness never authorizes production deployment.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: "**/*.md"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Lean Documentation Rules
|
|
6
|
+
|
|
7
|
+
Respect `.github/lean-workspace.json` and existing repository documentation.
|
|
8
|
+
|
|
9
|
+
- Do not create Product/Feature Briefs when the profile says they are unused.
|
|
10
|
+
- Do not create duplicate requirement authorities.
|
|
11
|
+
- Label experimental/supplemental briefs clearly.
|
|
12
|
+
- Do not assume a Jira Epic is a Feature Brief.
|
|
13
|
+
- Prefer one useful combined requirements artifact over a conveyor belt of docs when local requirements are appropriate.
|
|
14
|
+
- Keep secret values out of tracked Markdown.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: "**"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Lean Agentic Workflow
|
|
6
|
+
|
|
7
|
+
Read `.github/lean-workspace.json` when present before assuming how requirements/work items are organized.
|
|
8
|
+
|
|
9
|
+
Existing team conventions outrank Lean defaults.
|
|
10
|
+
|
|
11
|
+
Possible sources include Product Briefs, Feature Briefs, Engineering Enablers, Jira Epics/Stories, GitHub Issues, local requirements, ADRs, or small session context.
|
|
12
|
+
|
|
13
|
+
Use proportional rigor: `LIGHT`, `STANDARD`, `ELEVATED`.
|
|
14
|
+
|
|
15
|
+
Keep explicit human gates for material requirements, substantive plans, meaningful implementation acceptance, the final merge/delivery decision, and production deployment.
|
|
16
|
+
|
|
17
|
+
Once a bounded action is authorized, routine mechanics inside that scope should proceed without repeated ceremonial confirmation.
|
|
18
|
+
|
|
19
|
+
For implementation, establish the repository-appropriate short-lived work branch as routine setup once implementation itself is authorized; do not add a separate branch-creation gate when branch policy/naming and scope are clear.
|
|
20
|
+
|
|
21
|
+
Continuous modes such as `/grill-me`, `/grill-with-docs`, `/refine-requirements`, `/coach`, `/learning-review`, and `/production-readiness` continue until stopped or naturally complete.
|
|
22
|
+
|
|
23
|
+
During interactive questioning, prefer concise choice-first options for genuinely bounded human decisions, including `Other / specify` and `Not sure — recommend one` when appropriate. Keep factual/environment-specific values and questions intended to elicit the human's own framing, reasoning, debugging approach, design rationale, or understanding open-ended unless options are later useful as scaffolding.
|
|
24
|
+
|
|
25
|
+
Shared managed code keeps its canonical owner. When a consumer contains `CORE_BASELINE.json` or `DEPLOYMENT_BASELINE.json`, treat those baselines as ownership evidence. A temporary edit to a shared-managed consumer file may be used to diagnose or prove a reusable defect, but it is not the canonical deliverable.
|
|
26
|
+
|
|
27
|
+
Before consumer delivery, run available managed-baseline integrity checks. If Core- or Deployment-Kit-managed files have unexplained local drift, stop before staging/commit/push and route the reusable change through `/upstream-fix`. Fix the owning canonical repository, deliver/merge it there under normal gates, then adopt the exact accepted shared commit back into the consumer through the appropriate sync mechanism and retest in consumer context.
|
|
28
|
+
|
|
29
|
+
Do not manually preserve a private consumer fork of shared managed code merely because the consumer exposed the bug. Consumer-owned product/application files remain normal consumer implementation scope.
|
|
30
|
+
|
|
31
|
+
After implementation review and local human acceptance, manually invoking `/deliver` authorizes routine short-lived-branch recovery/setup as needed, selective stage/commit/push, PR creation/update, and PR-CI inspection. `/deliver` then stops once for the explicit `Merge and finalize delivery` decision. When the PR still exactly matches the accepted implementation, that one choice combines final PR acceptance, merge authorization, post-merge CI observation, and safe delivered-branch finalization.
|
|
32
|
+
|
|
33
|
+
Changed PR evidence re-opens the relevant review gate. Merge never implies production-deployment authorization.
|
|
34
|
+
|
|
35
|
+
Do not pin or automatically escalate models.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Coding / DSA Drills
|
|
2
|
+
|
|
3
|
+
Optional interview-style practice.
|
|
4
|
+
|
|
5
|
+
Preferred loop:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
problem
|
|
9
|
+
→ clarifying questions
|
|
10
|
+
→ approach
|
|
11
|
+
→ complexity
|
|
12
|
+
→ code
|
|
13
|
+
→ tests/edge cases
|
|
14
|
+
→ hints only when needed
|
|
15
|
+
→ alternatives
|
|
16
|
+
→ feedback
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Patterns:
|
|
20
|
+
|
|
21
|
+
- arrays/strings,
|
|
22
|
+
- hash map/set,
|
|
23
|
+
- stack/queue,
|
|
24
|
+
- two pointers,
|
|
25
|
+
- sliding window,
|
|
26
|
+
- sorting,
|
|
27
|
+
- binary search,
|
|
28
|
+
- linked lists,
|
|
29
|
+
- trees,
|
|
30
|
+
- BFS/DFS,
|
|
31
|
+
- graph basics,
|
|
32
|
+
- recursion,
|
|
33
|
+
- Big-O.
|
|
34
|
+
|
|
35
|
+
Prefer project-themed exercises when practical.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Diagram Guide
|
|
2
|
+
|
|
3
|
+
Coach may use Mermaid diagrams in chat for:
|
|
4
|
+
|
|
5
|
+
- architecture,
|
|
6
|
+
- request flow,
|
|
7
|
+
- sequence,
|
|
8
|
+
- state machine,
|
|
9
|
+
- ER/data relationships,
|
|
10
|
+
- CI/CD,
|
|
11
|
+
- deployment,
|
|
12
|
+
- concurrency.
|
|
13
|
+
|
|
14
|
+
Diagrams are ephemeral by default.
|
|
15
|
+
|
|
16
|
+
Only save them when explicitly requested.
|
|
17
|
+
|
|
18
|
+
After a diagram, ask the developer to explain the flow, failure path, boundary,
|
|
19
|
+
and tradeoff.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Engineering Learning Workbook
|
|
2
|
+
|
|
3
|
+
This is an optional, repository-neutral learning scaffold.
|
|
4
|
+
|
|
5
|
+
Use the actual project first. The goal is to understand, trace, debug, defend, and explain real engineering work rather than memorize a generic curriculum.
|
|
6
|
+
|
|
7
|
+
## Learning tools
|
|
8
|
+
|
|
9
|
+
Use the learning tools for different purposes:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
/code-walkthrough — instructional walkthrough of actual implementation changes
|
|
13
|
+
/learning-review — assessment of whether the developer can explain and defend the implementation
|
|
14
|
+
/coach — targeted concept learning, debugging practice, design discussion, drills, and deeper follow-up
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
All learning activity is optional and never an engineering delivery gate.
|
|
18
|
+
|
|
19
|
+
## Preferred project-first sequence
|
|
20
|
+
|
|
21
|
+
When an implementation is stable enough to study, a useful optional sequence is:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
implementation
|
|
25
|
+
→ /code-walkthrough
|
|
26
|
+
→ /learning-review
|
|
27
|
+
→ targeted /coach follow-up where gaps remain
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
A code walkthrough should connect two views of every meaningful change:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
FUNCTIONAL
|
|
34
|
+
What behavior changed? What can the user/system do now?
|
|
35
|
+
|
|
36
|
+
TECHNICAL
|
|
37
|
+
Which files, classes, functions, data structures, framework mechanisms, tests, and dependencies make that behavior work?
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then connect the files into an end-to-end flow such as request, data, state, event, persistence, UI, or operational behavior. Use the repository's actual architecture rather than forcing a generic sequence.
|
|
41
|
+
|
|
42
|
+
During a walkthrough, deeper learning can branch into tracing, diagrams, debugging discussion, design tradeoffs, quizzes, or interview-style explanation. The walkthrough remains read-only; discovered implementation issues return to the normal engineering workflow rather than being silently fixed inside learning mode.
|
|
43
|
+
|
|
44
|
+
## Suggested practice loop
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
concept or changed code
|
|
48
|
+
→ project example
|
|
49
|
+
→ developer explains in own words
|
|
50
|
+
→ trace/apply/debug
|
|
51
|
+
→ tradeoff/failure-mode follow-up
|
|
52
|
+
→ interview-style explanation when useful
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Core areas
|
|
56
|
+
|
|
57
|
+
- language/framework fundamentals,
|
|
58
|
+
- application/request/data flow,
|
|
59
|
+
- APIs and integration boundaries,
|
|
60
|
+
- database/SQL/ORM behavior,
|
|
61
|
+
- frontend state/validation/accessibility when relevant,
|
|
62
|
+
- testing/debugging/observability,
|
|
63
|
+
- messaging/distributed systems when relevant,
|
|
64
|
+
- CI/CD/deployment/operations,
|
|
65
|
+
- security and data protection,
|
|
66
|
+
- architecture/system design,
|
|
67
|
+
- coding/DSA interview patterns.
|
|
68
|
+
|
|
69
|
+
Use `LEARNING_MAP.md` to choose a small number of high-value topics and the drill files for focused practice. Learning progress is optional and never an engineering gate.
|
|
70
|
+
|
|
71
|
+
## Experience credibility
|
|
72
|
+
|
|
73
|
+
Keep these categories distinct:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
actually implemented/used
|
|
77
|
+
AI-generated but reviewed/understood
|
|
78
|
+
studied/practiced
|
|
79
|
+
not yet understood
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
A code walkthrough can help move AI-assisted implementation toward reviewed/understood code, but it does not by itself prove mastery or professional experience. Learning must not become a false claim of professional experience.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Optional Engineering Learning Map
|
|
2
|
+
|
|
3
|
+
Use only when useful.
|
|
4
|
+
|
|
5
|
+
Tracks:
|
|
6
|
+
|
|
7
|
+
- language/framework fundamentals,
|
|
8
|
+
- application architecture,
|
|
9
|
+
- APIs/HTTP,
|
|
10
|
+
- databases/SQL/ORM,
|
|
11
|
+
- frontend,
|
|
12
|
+
- testing/debugging,
|
|
13
|
+
- messaging/event-driven systems,
|
|
14
|
+
- Docker/CI/CD/operations,
|
|
15
|
+
- security,
|
|
16
|
+
- system design,
|
|
17
|
+
- coding/DSA,
|
|
18
|
+
- interview communication.
|
|
19
|
+
|
|
20
|
+
Levels:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
L1 Recognize
|
|
24
|
+
L2 Explain
|
|
25
|
+
L3 Trace
|
|
26
|
+
L4 Apply / Debug
|
|
27
|
+
L5 Defend / Design
|
|
28
|
+
L6 Interview Ready
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## How real-code learning maps to the levels
|
|
32
|
+
|
|
33
|
+
A structured `/code-walkthrough` is especially useful for the first three levels:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
L1 Recognize — identify important changed files, responsibilities, and concepts
|
|
37
|
+
L2 Explain — describe the functional and technical changes in own words
|
|
38
|
+
L3 Trace — follow request/data/state/event flow across the implementation
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Deeper follow-up can move into:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
L4 Apply / Debug — reason through failure modes, evidence, and debugging approach
|
|
45
|
+
L5 Defend / Design — explain choices, alternatives, tradeoffs, and architecture
|
|
46
|
+
L6 Interview Ready — explain the implementation clearly under follow-up questioning
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Use `/learning-review` to assess understanding after a walkthrough. Use `/coach` for targeted reinforcement, practice, or deeper exploration. These activities are optional and do not affect engineering delivery state.
|
|
50
|
+
|
|
51
|
+
Coach should recommend only a small number of next topics based on the actual repository/work item.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Optional Learning Progress
|
|
2
|
+
|
|
3
|
+
This file is optional and never an engineering gate.
|
|
4
|
+
|
|
5
|
+
| Topic | Level | Evidence/session | Next target | Last reviewed |
|
|
6
|
+
|---|---:|---|---|---|
|
|
7
|
+
| Language/framework | Not assessed | | | |
|
|
8
|
+
| Architecture | Not assessed | | | |
|
|
9
|
+
| Database/SQL | Not assessed | | | |
|
|
10
|
+
| Frontend | Not assessed | | | |
|
|
11
|
+
| Testing/debugging | Not assessed | | | |
|
|
12
|
+
| CI/CD/operations | Not assessed | | | |
|
|
13
|
+
| Security | Not assessed | | | |
|
|
14
|
+
| System design | Not assessed | | | |
|
|
15
|
+
| Coding/DSA | Not assessed | | | |
|
|
16
|
+
|
|
17
|
+
## Evidence examples
|
|
18
|
+
|
|
19
|
+
Record evidence only when the human explicitly chooses to update learning progress. Useful evidence can include:
|
|
20
|
+
|
|
21
|
+
- completed `/code-walkthrough` of a real implementation change set,
|
|
22
|
+
- explained the functional and technical purpose of important changed files,
|
|
23
|
+
- traced a request/data/state/event path across the implementation,
|
|
24
|
+
- explained a design choice and a credible alternative,
|
|
25
|
+
- reasoned through a failure mode or debugging approach,
|
|
26
|
+
- passed a `/learning-review` question at a demonstrated level,
|
|
27
|
+
- completed a focused `/coach` exercise or drill.
|
|
28
|
+
|
|
29
|
+
A walkthrough is evidence of review/understanding activity, not automatic proof of mastery. Record the demonstrated level conservatively.
|
|
30
|
+
|
|
31
|
+
Do not update automatically.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Optional External Learning Resources
|
|
2
|
+
|
|
3
|
+
Prefer:
|
|
4
|
+
|
|
5
|
+
1. official docs,
|
|
6
|
+
2. official/vendor tutorials,
|
|
7
|
+
3. current high-quality videos,
|
|
8
|
+
4. interactive practice.
|
|
9
|
+
|
|
10
|
+
Show only 1–3 resources at a time.
|
|
11
|
+
|
|
12
|
+
Suggested source families:
|
|
13
|
+
|
|
14
|
+
- language/framework official docs,
|
|
15
|
+
- database vendor docs,
|
|
16
|
+
- MDN for web/HTTP,
|
|
17
|
+
- Docker docs,
|
|
18
|
+
- GitHub/Git docs,
|
|
19
|
+
- testing-framework docs,
|
|
20
|
+
- LeetCode or equivalent for targeted DSA/SQL practice.
|
|
21
|
+
|
|
22
|
+
When current web access is available, verify specific current video/tutorial
|
|
23
|
+
recommendations rather than relying on stale links.
|
|
24
|
+
|
|
25
|
+
External resources never become an engineering requirement.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# SQL / Database Drills
|
|
2
|
+
|
|
3
|
+
Optional practice areas:
|
|
4
|
+
|
|
5
|
+
- joins,
|
|
6
|
+
- aggregates,
|
|
7
|
+
- GROUP BY/HAVING,
|
|
8
|
+
- pagination,
|
|
9
|
+
- deterministic sorting,
|
|
10
|
+
- indexes,
|
|
11
|
+
- query plans,
|
|
12
|
+
- constraints,
|
|
13
|
+
- transactions,
|
|
14
|
+
- concurrency,
|
|
15
|
+
- N+1,
|
|
16
|
+
- ORM translation.
|
|
17
|
+
|
|
18
|
+
Preferred flow:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
problem
|
|
22
|
+
→ developer writes SQL
|
|
23
|
+
→ correctness
|
|
24
|
+
→ edge cases
|
|
25
|
+
→ indexing/query-plan follow-up
|
|
26
|
+
→ ORM discussion
|
|
27
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# System-Design Drills
|
|
2
|
+
|
|
3
|
+
Start from the actual repository.
|
|
4
|
+
|
|
5
|
+
Possible exercises:
|
|
6
|
+
|
|
7
|
+
- explain current architecture,
|
|
8
|
+
- scale users/tenants,
|
|
9
|
+
- evolve persistence,
|
|
10
|
+
- multi-instance concurrency,
|
|
11
|
+
- caching,
|
|
12
|
+
- messaging/events,
|
|
13
|
+
- search,
|
|
14
|
+
- file/object storage,
|
|
15
|
+
- authentication/authorization,
|
|
16
|
+
- observability,
|
|
17
|
+
- backup/recovery,
|
|
18
|
+
- incident response,
|
|
19
|
+
- offline/synchronization.
|
|
20
|
+
|
|
21
|
+
Ask one question at a time and make the developer drive the design.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Optional Coaching Guide
|
|
2
|
+
|
|
3
|
+
Coaching is first-class but never required for engineering completion.
|
|
4
|
+
|
|
5
|
+
## Depth
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
1. Light — quick explanation/check
|
|
9
|
+
2. Focused — one topic, moderate depth
|
|
10
|
+
3. Deep — trace/apply/debug/defend
|
|
11
|
+
4. Broad — survey related areas and identify gaps
|
|
12
|
+
5. Let Coach recommend
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Modes
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
1. Learn a concept
|
|
19
|
+
2. Walk through real project code
|
|
20
|
+
3. Debugging exercise/review
|
|
21
|
+
4. Coding / DSA drill
|
|
22
|
+
5. SQL / database drill
|
|
23
|
+
6. Design defense
|
|
24
|
+
7. System-design exercise
|
|
25
|
+
8. Interview drill
|
|
26
|
+
9. Learning-gap assessment
|
|
27
|
+
10. Recommended learning path
|
|
28
|
+
11. Docs / tutorial / video resources
|
|
29
|
+
12. Return to engineering workflow
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
For a structured walkthrough of an implementation change set, use `/code-walkthrough`. It is the guided changed-file path under the coaching umbrella: resolve the actual Git/PR/commit diff, order files for understanding, explain functional and technical changes, and allow deeper tracing, diagrams, quizzes, debugging discussion, or interview practice without editing code.
|
|
33
|
+
|
|
34
|
+
Use `/coach` for broader or ad-hoc concept learning. Use `/learning-review` when the primary goal is to assess whether the developer can explain and defend what was built.
|
|
35
|
+
|
|
36
|
+
## Levels
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
L1 Recognize
|
|
40
|
+
L2 Explain
|
|
41
|
+
L3 Trace
|
|
42
|
+
L4 Apply / Debug
|
|
43
|
+
L5 Defend / Design
|
|
44
|
+
L6 Interview Ready
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
A useful optional sequence after stable implementation is:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
code walkthrough
|
|
51
|
+
→ learning review
|
|
52
|
+
→ targeted coaching as needed
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
None of those learning activities is an engineering delivery gate.
|
|
56
|
+
|
|
57
|
+
Once a coaching mode starts, continue automatically until stop or natural completion. Use the actual repository as the curriculum whenever possible. Learning trackers/resources remain optional.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Guided Next Steps
|
|
2
|
+
|
|
3
|
+
Substantial Lean interactions should not end with a vague `Next:` sentence.
|
|
4
|
+
|
|
5
|
+
Use evidence-backed guidance:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
CURRENT STATE
|
|
9
|
+
<what is actually known>
|
|
10
|
+
|
|
11
|
+
RECOMMENDED NEXT STEP
|
|
12
|
+
<one action and why>
|
|
13
|
+
|
|
14
|
+
OPTIONS
|
|
15
|
+
1. ... [READ ONLY]
|
|
16
|
+
2. ... [MODIFIES DOCS]
|
|
17
|
+
3. ... [MODIFIES FILES]
|
|
18
|
+
4. ... [GIT + GITHUB WRITE]
|
|
19
|
+
5. Stop [NO ACTION]
|
|
20
|
+
|
|
21
|
+
RECOMMENDED PATH
|
|
22
|
+
<only when multiple future steps are useful>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Show only relevant options.
|
|
26
|
+
|
|
27
|
+
Standard action labels include:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
[READ ONLY]
|
|
31
|
+
[MODIFIES DOCS]
|
|
32
|
+
[MODIFIES FILES]
|
|
33
|
+
[REQUIREMENTS GATE]
|
|
34
|
+
[HUMAN ACCEPTANCE]
|
|
35
|
+
[GIT WRITE]
|
|
36
|
+
[GITHUB WRITE]
|
|
37
|
+
[GIT + GITHUB WRITE]
|
|
38
|
+
[REMOTE READ ONLY]
|
|
39
|
+
[REMOTE WRITE]
|
|
40
|
+
[PRODUCTION WRITE]
|
|
41
|
+
[NO ACTION]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A selected option authorizes only the bounded action described, except where a skill explicitly defines a continuous session or compound mechanical action.
|
|
45
|
+
|
|
46
|
+
A manually invoked compound action skill may itself be the bounded authorization for its routine mechanics. `/deliver`, for example, may proceed through safe short-lived-branch setup/recovery, staging, commit, push, PR creation/update, and CI inspection without inserting separate options for each mechanical step. It still stops at its explicit merge/finalize gate and whenever evidence becomes ambiguous or unsafe.
|
|
47
|
+
|
|
48
|
+
Conversation may continue automatically; consequential decisions remain explicitly gated.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Human Gates
|
|
2
|
+
|
|
3
|
+
Use explicit human gates where consequences warrant them.
|
|
4
|
+
|
|
5
|
+
Typical gates:
|
|
6
|
+
- workspace/setup acceptance before the first substantive work item,
|
|
7
|
+
- material requirements/scope approval when detailed requirements matter,
|
|
8
|
+
- substantive implementation-plan approval for STANDARD/ELEVATED work,
|
|
9
|
+
- meaningful local implementation/diff acceptance,
|
|
10
|
+
- merge/final-delivery decision after PR CI when the PR still matches the accepted implementation,
|
|
11
|
+
- unrelated/out-of-band branch deletion when not already covered by a bounded delivery/cleanup choice,
|
|
12
|
+
- external/remote/system writes not already covered by an explicitly invoked bounded workflow,
|
|
13
|
+
- first production deployment,
|
|
14
|
+
- destructive recovery/restore,
|
|
15
|
+
- publishing a release/tag.
|
|
16
|
+
|
|
17
|
+
Workspace/setup acceptance is distinct from generation or installation. Generated files, installed tools, operational dependencies, editor/agent discovery, and human usability are separate facts. A setup script or static diagnostic may provide evidence, but only the human accepts the checkout as ready for the next intended work item.
|
|
18
|
+
|
|
19
|
+
A human gate is meaningful only when the human understands what is being approved. If the explanation immediately before a gate did not land, re-explain it before asking for approval again. `/wait-what` is the standard read-only communication-repair path when available; invoking it never implies approval of the pending action.
|
|
20
|
+
|
|
21
|
+
Do not gate routine mechanics individually after a bounded action is already authorized.
|
|
22
|
+
|
|
23
|
+
## Implementation branch setup
|
|
24
|
+
|
|
25
|
+
Once implementation itself is authorized, creating/switching to the repository-appropriate short-lived work branch is routine setup, not a separate decision gate, when branch policy/naming and work-item scope are clear and the operation preserves the worktree without history rewriting.
|
|
26
|
+
|
|
27
|
+
For STANDARD/ELEVATED work, this branch setup follows plan approval. For LIGHT work, it is part of the human-selected implementation action.
|
|
28
|
+
|
|
29
|
+
Stop only when branch choice/state is ambiguous, unrelated work is present, or the operation would require stash/reset/rebase/force/history rewriting.
|
|
30
|
+
|
|
31
|
+
## Streamlined /deliver authorization
|
|
32
|
+
|
|
33
|
+
Because `/deliver` is manually invoked after implementation review and meaningful local acceptance, invoking it is one bounded authorization for routine delivery mechanics within that accepted scope:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
recover/create the short-lived branch when needed
|
|
37
|
+
→ selective stage
|
|
38
|
+
→ staged-diff verification
|
|
39
|
+
→ commit-message generation
|
|
40
|
+
→ commit
|
|
41
|
+
→ normal push
|
|
42
|
+
→ create/update PR
|
|
43
|
+
→ PR-body population
|
|
44
|
+
→ PR-CI inspection/rechecks
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Do not separately ask `Create branch?`, `Commit?`, `Push?`, `Create PR?`, or `Check CI?` when those actions remain safe and within scope.
|
|
48
|
+
|
|
49
|
+
`/deliver` invocation does **not** authorize merge, production deployment, force push, code fixes after CI failure, unrelated branch deletion, scope expansion, or destructive/history-rewriting Git operations.
|
|
50
|
+
|
|
51
|
+
## Combined final acceptance + merge gate
|
|
52
|
+
|
|
53
|
+
When the PR head/diff still exactly represents the implementation the human already accepted locally, Reviewer is READY, required PR CI is green, and repository policy/mergeability are satisfactory, final PR acceptance and merge authorization may be combined into one meaningful choice:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
Merge and finalize delivery [HUMAN ACCEPTANCE + GITHUB/GIT WRITE]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
That explicit choice covers only the observed PR and its normal short-lived delivered branch. It authorizes:
|
|
60
|
+
- final acceptance of the PR as observed,
|
|
61
|
+
- merge using the approved repository strategy,
|
|
62
|
+
- observation/recheck of required post-merge default-branch CI,
|
|
63
|
+
- safe finalization of that delivered short-lived branch after required post-merge CI is green.
|
|
64
|
+
|
|
65
|
+
It does not authorize deleting any other branch, bypassing changed evidence, or deploying to production.
|
|
66
|
+
|
|
67
|
+
If new commits, material diff changes, conflicts, or regressed checks appear after local acceptance, final PR review becomes a real gate again before merge.
|
|
68
|
+
|
|
69
|
+
If the repository/human explicitly requires branch retention, preserve the delivered branch. If safe cleanup cannot be proven, preserve it and report the exact reason rather than inserting another ceremonial prompt.
|
|
70
|
+
|
|
71
|
+
A later production deployment, unrelated branch cleanup, release publication, destructive recovery action, or newly changed implementation remains a separate explicit gate.
|
|
72
|
+
|
|
73
|
+
The principle is:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
conversation continues automatically
|
|
77
|
+
routine mechanics are grouped when safe
|
|
78
|
+
branch setup/finalization are automatic inside explicit bounded workflows
|
|
79
|
+
changed evidence re-opens the relevant review gate
|
|
80
|
+
consequential decisions remain human-controlled
|
|
81
|
+
```
|