@mrciphersmith/keryx 0.4.27 → 0.4.28
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 +2 -2
- package/dist/cli.js +105165 -104989
- package/dist/core.js +21 -197
- package/dist/keryx-general-worker-entry.js +22 -201
- package/package.json +3 -3
- package/src/gdskills/bundled/agents/work-planner.md +1 -1
- package/src/gdskills/bundled/install-manifest.json +3 -26
- package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
- package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +4 -5
- package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +8 -8
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +7 -10
- package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +12 -21
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +1 -1
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +3 -4
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/quality/git-publish/SKILL.md +60 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +7 -7
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +22 -22
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +15 -15
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +7 -7
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +34 -30
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +64 -135
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +18 -20
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +12 -18
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +2 -2
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +2 -10
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +35 -35
- package/src/gdskills/bundled/skills/review/review-pr-contract/SKILL.md +4 -5
- package/src/gdskills/bundled/skills/review/review-premise/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +3 -5
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +14 -15
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +14 -13
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +11 -11
- package/src/gdskills/bundled/skills/review/review-ui-ux/SKILL.md +10 -11
- package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +5 -5
- package/src/gdskills/bundled/skills/shared/git-merge-base.md +1 -1
- package/src/gdskills/bundled/stacks/mobx/agent-refs.json +1 -1
- package/src/gdskills/bundled/stacks/mobx/governance/scout.json +2 -2
- package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +2 -2
- package/src/gdskills/bundled/stacks/vue/governance/scout.json +1 -1
- package/src/gdskills/contracts/review-finding.schema.json +2 -2
- package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +0 -49
- package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +0 -198
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +0 -177
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +0 -414
- package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +0 -55
- package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +0 -58
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +0 -209
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +0 -209
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +0 -208
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +0 -255
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +0 -255
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +0 -254
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +0 -209
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +0 -209
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +0 -208
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +0 -171
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +0 -171
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +0 -170
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +0 -184
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +0 -184
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +0 -183
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +0 -249
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +0 -249
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +0 -248
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +0 -199
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +0 -199
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +0 -198
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +0 -87
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +0 -95
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +0 -73
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +0 -238
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +0 -301
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +0 -208
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: stack-advisor
|
|
3
|
-
description: >
|
|
4
|
-
Determines project level (MVP/pet/startup/production) and recommends optimal
|
|
5
|
-
technology stack with trade-off analysis.
|
|
6
|
-
Use when: dispatched by gproject-orchestrator Phase 2.
|
|
7
|
-
NOT for: direct user invocation.
|
|
8
|
-
triggers:
|
|
9
|
-
- "stack advice"
|
|
10
|
-
- "choose stack"
|
|
11
|
-
- "technology choice"
|
|
12
|
-
metadata:
|
|
13
|
-
version: 1.0.0
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# gproject-stack-advisor
|
|
17
|
-
|
|
18
|
-
## Purpose
|
|
19
|
-
|
|
20
|
-
Select the right project level and technology stack based on problems, goals,
|
|
21
|
-
constraints, and best practices. Every recommendation must be justified
|
|
22
|
-
with trade-offs — not "use React because it's popular" but "use React because
|
|
23
|
-
[specific reasons matching this project's constraints]."
|
|
24
|
-
|
|
25
|
-
## Iron Laws
|
|
26
|
-
|
|
27
|
-
| # | Law |
|
|
28
|
-
|---|-----|
|
|
29
|
-
| 1 | EVERY technology choice MUST have explicit rationale tied to project constraints |
|
|
30
|
-
| 2 | EVERY choice MUST list at least one considered alternative and why it was rejected |
|
|
31
|
-
| 3 | Stack MUST match project level — no Kubernetes for an MVP |
|
|
32
|
-
| 4 | In task_in_project mode, default to existing stack unless change is strongly justified |
|
|
33
|
-
| 5 | NEVER recommend a technology without checking its maturity and community support |
|
|
34
|
-
| 6 | Team skills MUST be a primary factor — perfect tech with no team knowledge = wrong choice |
|
|
35
|
-
|
|
36
|
-
## Red Flags
|
|
37
|
-
|
|
38
|
-
| Flag | What's happening | Action |
|
|
39
|
-
|------|-----------------|--------|
|
|
40
|
-
| Recommending 5+ new technologies for MVP | Over-engineering | Simplify to max 3 core choices |
|
|
41
|
-
| Ignoring team skills in rationale | Tech-driven not people-driven | Re-evaluate with team factor |
|
|
42
|
-
| No alternative considered | Confirmation bias | Research at least 1 alternative per choice |
|
|
43
|
-
| Recommending bleeding-edge for production | Risk ignorance | Flag maturity concern |
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Input Contract
|
|
48
|
-
|
|
49
|
-
```yaml
|
|
50
|
-
task: "Select project level and technology stack"
|
|
51
|
-
input_artifacts:
|
|
52
|
-
- .metaproject/jobs/<job>/artifacts/problem-statement.md
|
|
53
|
-
decisions_so_far:
|
|
54
|
-
D_core_problems: [...]
|
|
55
|
-
D_goals: [...]
|
|
56
|
-
D_non_goals: [...]
|
|
57
|
-
D_target_users: "..."
|
|
58
|
-
D_scale_estimate: "..."
|
|
59
|
-
# For task_in_project:
|
|
60
|
-
D_existing_stack: "<if detected by context-collector>"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Output Contract
|
|
64
|
-
|
|
65
|
-
```yaml
|
|
66
|
-
status: "DONE" | "NEEDS_CONTEXT"
|
|
67
|
-
summary: "<3-5 sentences: level chosen, stack chosen, key trade-off>"
|
|
68
|
-
new_decisions:
|
|
69
|
-
D_level: "mvp | pet | startup | production"
|
|
70
|
-
D_frontend: "<framework + version>"
|
|
71
|
-
D_backend: "<framework + version>"
|
|
72
|
-
D_database: "<DB + version>"
|
|
73
|
-
D_cache: "<if needed>"
|
|
74
|
-
D_queue: "<if needed>"
|
|
75
|
-
D_auth: "<approach>"
|
|
76
|
-
D_deploy: "<strategy>"
|
|
77
|
-
D_infra: "<approach>"
|
|
78
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/stack-decision.md"
|
|
79
|
-
next_phase_needs:
|
|
80
|
-
- "Per-technology best practices research"
|
|
81
|
-
- "Architecture pattern selection"
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Workflow
|
|
87
|
-
|
|
88
|
-
### Step 1: Determine Project Level
|
|
89
|
-
|
|
90
|
-
Evaluate against criteria matrix:
|
|
91
|
-
|
|
92
|
-
| Factor | MVP | Pet/Learning | Startup | Production |
|
|
93
|
-
|--------|-----|-------------|---------|------------|
|
|
94
|
-
| Users | <100 | 1 (self) | 100-10K | 10K+ |
|
|
95
|
-
| Team | 1 person | 1 person | 2-5 | 5+ |
|
|
96
|
-
| Lifespan | weeks | indefinite | months-years | years |
|
|
97
|
-
| Budget | minimal | zero | seed/limited | funded |
|
|
98
|
-
| Uptime SLA | none | none | 99% | 99.9%+ |
|
|
99
|
-
| Data sensitivity | low | low | medium | high |
|
|
100
|
-
| Compliance | none | none | basic | regulated |
|
|
101
|
-
|
|
102
|
-
The level determines complexity ceiling:
|
|
103
|
-
- **MVP**: max simplicity, monolith, single deploy target, minimal infra
|
|
104
|
-
- **Pet**: developer experience priority, learning-friendly stack
|
|
105
|
-
- **Startup**: balance of speed and scalability, ready for growth
|
|
106
|
-
- **Production**: reliability, security, observability, scalability first
|
|
107
|
-
|
|
108
|
-
### Step 2: Evaluate Stack Options
|
|
109
|
-
|
|
110
|
-
For each layer, evaluate 2-3 options against project-specific criteria:
|
|
111
|
-
|
|
112
|
-
**Evaluation criteria** (weight varies by project level):
|
|
113
|
-
1. **Problem fit** — does it solve our specific problems well?
|
|
114
|
-
2. **Team match** — does the team know it? Learning curve?
|
|
115
|
-
3. **Ecosystem** — libraries, tools, community for our use case
|
|
116
|
-
4. **Scalability ceiling** — will it handle our target scale?
|
|
117
|
-
5. **Velocity** — how fast can we ship with it?
|
|
118
|
-
6. **Cost** — licensing, hosting, operational cost
|
|
119
|
-
7. **Maturity** — production-proven? Active maintenance?
|
|
120
|
-
8. **Integration** — works well with other chosen components?
|
|
121
|
-
|
|
122
|
-
### Step 3: Web Research (Best Practices)
|
|
123
|
-
|
|
124
|
-
For the shortlisted stack, research:
|
|
125
|
-
- Current best practices (2024-2025 sources preferred)
|
|
126
|
-
- Common pitfalls and antipatterns
|
|
127
|
-
- Production case studies at similar scale
|
|
128
|
-
- Performance benchmarks relevant to our use case
|
|
129
|
-
|
|
130
|
-
### Step 4: task_in_project Mode Adjustments
|
|
131
|
-
|
|
132
|
-
If mode is task_in_project:
|
|
133
|
-
- Start from existing stack (detected by context-collector)
|
|
134
|
-
- Only recommend NEW technologies if:
|
|
135
|
-
- Existing stack cannot solve the specific problem
|
|
136
|
-
- New tech integrates cleanly with existing stack
|
|
137
|
-
- Learning overhead is justified by benefit
|
|
138
|
-
- Flag any technology additions clearly as "NEW — requires team learning"
|
|
139
|
-
|
|
140
|
-
### Step 5: Write Stack Decision
|
|
141
|
-
|
|
142
|
-
Write `artifacts/stack-decision.md`:
|
|
143
|
-
|
|
144
|
-
```markdown
|
|
145
|
-
# Stack Decision: <Project/Task Name>
|
|
146
|
-
|
|
147
|
-
## Project Level: <LEVEL>
|
|
148
|
-
**Rationale**: <why this level, based on constraints>
|
|
149
|
-
|
|
150
|
-
## Technology Stack
|
|
151
|
-
|
|
152
|
-
### Frontend: <Choice>
|
|
153
|
-
**Version**: <specific>
|
|
154
|
-
**Rationale**: <tied to project constraints>
|
|
155
|
-
**Alternative considered**: <what and why rejected>
|
|
156
|
-
**Key libraries**: <essential deps>
|
|
157
|
-
|
|
158
|
-
### Backend: <Choice>
|
|
159
|
-
**Version**: <specific>
|
|
160
|
-
**Rationale**: <tied to project constraints>
|
|
161
|
-
**Alternative considered**: <what and why rejected>
|
|
162
|
-
**Key libraries**: <essential deps>
|
|
163
|
-
|
|
164
|
-
### Database: <Choice>
|
|
165
|
-
...
|
|
166
|
-
|
|
167
|
-
### Infrastructure & Deploy: <Choice>
|
|
168
|
-
...
|
|
169
|
-
|
|
170
|
-
### Additional Services (if any)
|
|
171
|
-
- Cache: <if needed, with rationale>
|
|
172
|
-
- Queue: <if needed, with rationale>
|
|
173
|
-
- Search: <if needed, with rationale>
|
|
174
|
-
|
|
175
|
-
## Stack Compatibility Matrix
|
|
176
|
-
| Component | Integrates With | Integration Quality |
|
|
177
|
-
|-----------|----------------|-------------------|
|
|
178
|
-
| <A> | <B> | proven / good / experimental |
|
|
179
|
-
|
|
180
|
-
## Trade-offs Accepted
|
|
181
|
-
| Trade-off | What We Gain | What We Give Up |
|
|
182
|
-
|-----------|-------------|-----------------|
|
|
183
|
-
| <choice> | <benefit> | <cost> |
|
|
184
|
-
|
|
185
|
-
## Complexity Budget
|
|
186
|
-
**Total new technologies**: <count>
|
|
187
|
-
**Team learning required**: <list what's new>
|
|
188
|
-
**Estimated ramp-up**: <time>
|
|
189
|
-
|
|
190
|
-
## Risk Assessment
|
|
191
|
-
| Risk | Probability | Impact | Mitigation |
|
|
192
|
-
|------|------------|--------|------------|
|
|
193
|
-
| <risk> | <H/M/L> | <H/M/L> | <plan> |
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Step 6: Return Summary
|
|
197
|
-
|
|
198
|
-
Compact summary: level + core stack (one line) + biggest trade-off + confidence.
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "Use when committing code changes and a well-structured conventional commit message is needed, with optional amend or selective staging. NOT for publishing the branch to the remote (use `push`) or opening a pull request (use `pr`)."
|
|
4
|
-
triggers:
|
|
5
|
-
- "commit changes"
|
|
6
|
-
- "git commit"
|
|
7
|
-
- "conventional commit"
|
|
8
|
-
- "Commit this"
|
|
9
|
-
- "Save changes"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Smart Commit
|
|
19
|
-
|
|
20
|
-
Create well-structured git commits from current changes.
|
|
21
|
-
|
|
22
|
-
## Workflow
|
|
23
|
-
|
|
24
|
-
### Phase 1: Analyze Changes
|
|
25
|
-
1. Run `git status` and `git diff --staged` and `git diff` to understand all changes
|
|
26
|
-
2. Run `git log --oneline -5` to match the repo's commit message style
|
|
27
|
-
3. Check for conventional commit patterns in history
|
|
28
|
-
|
|
29
|
-
### Phase 2: Stage Files
|
|
30
|
-
If nothing is staged, intelligently stage relevant files:
|
|
31
|
-
- Stage modified and new files that are part of the logical change
|
|
32
|
-
- **NEVER** stage `.env`, credentials, secrets, or large binary files
|
|
33
|
-
- Stage explicit pathspecs (`git add <specific files>`); **NEVER** `git add -A`, `--all`, or `.`
|
|
34
|
-
- Ask the user before staging untracked files that look unrelated to recent work
|
|
35
|
-
|
|
36
|
-
### Phase 3: Generate Commit Message
|
|
37
|
-
Analyze the diff and generate a concise commit message:
|
|
38
|
-
- First line: `<type>(<scope>): <description>` (under 72 chars)
|
|
39
|
-
- Types: `feat:`, `fix:`, `refactor:`, `test:`, `docs:`, `chore:`, `style:`, `perf:`
|
|
40
|
-
- Optional body: explain "why" not "what" (the diff shows "what")
|
|
41
|
-
- **NEVER** add "Co-Authored-By" or any co-authorship lines
|
|
42
|
-
|
|
43
|
-
### Phase 4: Commit
|
|
44
|
-
Create the commit using heredoc format:
|
|
45
|
-
```bash
|
|
46
|
-
git commit -m "$(cat <<'EOF'
|
|
47
|
-
type(scope): description
|
|
48
|
-
EOF
|
|
49
|
-
)"
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Phase 5: Verify
|
|
53
|
-
Show the result: `git log --oneline -1` and `git status`
|
|
54
|
-
|
|
55
|
-
## Arguments
|
|
56
|
-
|
|
57
|
-
- `/commit` — auto-generate message from diff
|
|
58
|
-
- `/commit <message>` — use provided message as-is
|
|
59
|
-
- `/commit --amend` — amend the last commit (only when explicitly requested)
|
|
60
|
-
- `/commit -a` — stage all modified files before committing
|
|
61
|
-
|
|
62
|
-
## Rules
|
|
63
|
-
|
|
64
|
-
- NEVER use `--no-verify` or skip hooks
|
|
65
|
-
- NEVER add Co-Authored-By lines
|
|
66
|
-
- If pre-commit hook fails: fix the issue, re-stage, create a NEW commit (don't amend)
|
|
67
|
-
- Follow existing commit message conventions in the repository
|
|
68
|
-
|
|
69
|
-
## Red Flags
|
|
70
|
-
|
|
71
|
-
| Rationalization | Why it is wrong |
|
|
72
|
-
|---|---|
|
|
73
|
-
| "Everything in the tree is my work, so staging it all is faster" | It is not all your work. A parallel agent, a running lane, or a half-finished edit of the user's rides along invisibly. Never stage by wildcard — list explicit pathspecs |
|
|
74
|
-
| "The pre-commit hook failed on a file I didn't touch, `--no-verify` gets me past it" | The hook is the repository's gate, not an obstacle to route around. Fix the issue, re-stage, commit again |
|
|
75
|
-
| "The last commit is mine and close enough — I'll amend it" | Amend only when the user explicitly asked. Amending a commit that is already pushed rewrites history someone else has fetched |
|
|
76
|
-
| "The diff shows what happened, so `chore: updates` is enough" | The subject line is all a `git log` reader gets. Name the change and its scope in under 72 chars |
|
|
77
|
-
| "The user is out of the loop on this untracked file, but it looks like mine" | Untracked files that look unrelated to recent work get a question, not a guess — that is how an `.env` or a scratch dump gets committed |
|
|
78
|
-
|
|
79
|
-
## Verification
|
|
80
|
-
|
|
81
|
-
Do not report the commit as done until all of the following hold:
|
|
82
|
-
|
|
83
|
-
- `git log --oneline -1` shows the new commit, subject in `<type>(<scope>): <description>` form and under 72 chars
|
|
84
|
-
- `git show --stat HEAD` lists exactly the intended files — no `.env`, credential, key, or large binary file
|
|
85
|
-
- `git status` shows nothing else newly staged that you did not mean to include
|
|
86
|
-
- `git show HEAD` carries no `Co-Authored-By` or generated-by trailer
|
|
87
|
-
- Hooks ran — no `--no-verify` was passed; if a hook failed, a NEW commit exists rather than an amend
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pr
|
|
3
|
-
description: "Use when opening a pull request for the current branch. NOT for rewriting the body of a pull request that already exists or its linked issue (use `pr-issue-documenter`)."
|
|
4
|
-
triggers:
|
|
5
|
-
- "open PR"
|
|
6
|
-
- "create pull request"
|
|
7
|
-
- "draft PR"
|
|
8
|
-
- "Open pull request"
|
|
9
|
-
- "Make PR"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Smart PR Creation
|
|
19
|
-
|
|
20
|
-
Create a well-documented GitHub Pull Request from current branch.
|
|
21
|
-
|
|
22
|
-
## Workflow
|
|
23
|
-
|
|
24
|
-
### Phase 1: Gather Context
|
|
25
|
-
Run in parallel:
|
|
26
|
-
1. `git status` — check for uncommitted changes
|
|
27
|
-
2. `git branch --show-current` — current branch name
|
|
28
|
-
3. `git log --oneline main..HEAD` (or master) — all commits in this branch
|
|
29
|
-
4. `git diff main...HEAD --stat` — changed files summary
|
|
30
|
-
|
|
31
|
-
### Phase 2: Pre-checks
|
|
32
|
-
- If there are uncommitted changes → ask if the user wants to commit first
|
|
33
|
-
- If branch is not pushed → push it with `-u origin`
|
|
34
|
-
- If already on main/master → error: "Create a feature branch first"
|
|
35
|
-
|
|
36
|
-
### Phase 3: Analyze Changes
|
|
37
|
-
Analyze ALL commits and changes (not just the latest):
|
|
38
|
-
- `git diff main...HEAD` for the full diff
|
|
39
|
-
- Understand the scope: new feature, bugfix, refactor, etc.
|
|
40
|
-
|
|
41
|
-
### Phase 4: Generate & Create PR
|
|
42
|
-
Generate structured PR:
|
|
43
|
-
- **Title**: short, under 70 chars, descriptive
|
|
44
|
-
- **Body**: Summary + Changes + Test plan
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
gh pr create --title "title" --body "$(cat <<'EOF'
|
|
48
|
-
## Summary
|
|
49
|
-
<bullet points>
|
|
50
|
-
|
|
51
|
-
## Changes
|
|
52
|
-
<key changes by area>
|
|
53
|
-
|
|
54
|
-
## Test plan
|
|
55
|
-
<how to verify>
|
|
56
|
-
EOF
|
|
57
|
-
)"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Phase 5: Report
|
|
61
|
-
Return the PR URL to the user.
|
|
62
|
-
|
|
63
|
-
## Arguments
|
|
64
|
-
|
|
65
|
-
- `/pr` — create PR to default branch (main/master)
|
|
66
|
-
- `/pr --draft` — create as draft PR
|
|
67
|
-
- `/pr --base <branch>` — target specific base branch
|
|
68
|
-
- `/pr <title>` — use provided title instead of generating one
|
|
69
|
-
|
|
70
|
-
## Rules
|
|
71
|
-
|
|
72
|
-
- NEVER create empty PRs
|
|
73
|
-
- Always analyze ALL commits, not just the last one
|
|
74
|
-
- If the branch has linked GitHub issues, reference them in the body
|
|
75
|
-
- Ask user for confirmation before creating if there are 10+ commits
|
|
76
|
-
|
|
77
|
-
## Red Flags
|
|
78
|
-
|
|
79
|
-
| Rationalization | Why it is wrong |
|
|
80
|
-
|---|---|
|
|
81
|
-
| "The last commit message already summarizes the work, use it as the body" | A PR is the whole branch, not its tip. Read `main...HEAD`; the earliest commits are usually where the design decision a reviewer needs actually happened |
|
|
82
|
-
| "The branch isn't pushed, but `gh pr create` will sort that out" | It either fails or opens a PR against a stale remote head, so the diff a reviewer sees is not the diff you analyzed. Push with `-u origin <branch>` first |
|
|
83
|
-
| "The tree is dirty, but the commits are what get reviewed anyway" | Exactly — which means the uncommitted half of the change quietly does not exist in the PR, and the reviewer approves something incomplete. Ask before opening over a dirty tree |
|
|
84
|
-
| "There's an open issue that sounds like this work, I'll write `Closes #N`" | `Closes` shuts an issue on merge. Reference only issues the branch or its commits actually link to; a guess closes someone else's ticket |
|
|
85
|
-
| "The user asked for a PR, so 40 commits is still just 'create the PR'" | 10+ commits gets a confirmation first. A branch that large is usually two PRs, and saying so is cheaper before the PR exists than after review starts |
|
|
86
|
-
|
|
87
|
-
## Verification
|
|
88
|
-
|
|
89
|
-
Do not report the PR as done until all of the following hold:
|
|
90
|
-
|
|
91
|
-
- `gh pr view --json url,title,body` returns the created PR, with a non-empty body carrying Summary, Changes and Test plan
|
|
92
|
-
- The title is under 70 chars and describes the branch, not the last commit
|
|
93
|
-
- Every commit in `git log <base>..HEAD` is represented somewhere in the body — no area of the diff goes unmentioned
|
|
94
|
-
- The branch has an upstream and the remote head equals local `HEAD`
|
|
95
|
-
- The PR URL is returned to the user
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: push
|
|
3
|
-
description: "Use when pushing the current branch to the remote, especially when upstream tracking or safety checks are needed. NOT for creating the commits themselves (use `commit`) or opening a pull request afterwards (use `pr`)."
|
|
4
|
-
triggers:
|
|
5
|
-
- "push branch"
|
|
6
|
-
- "git push"
|
|
7
|
-
- "publish branch"
|
|
8
|
-
- "Push changes"
|
|
9
|
-
- "Push to remote"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Smart Push
|
|
19
|
-
|
|
20
|
-
Push current branch to remote with safety checks.
|
|
21
|
-
|
|
22
|
-
## Workflow
|
|
23
|
-
|
|
24
|
-
### Phase 1: Pre-flight
|
|
25
|
-
Run in parallel where possible:
|
|
26
|
-
1. `git status` — check for uncommitted changes
|
|
27
|
-
2. `git branch -vv` — check current branch and tracking info
|
|
28
|
-
3. `git log @{upstream}..HEAD --oneline 2>/dev/null` — commits to push
|
|
29
|
-
|
|
30
|
-
### Phase 2: Safety Checks
|
|
31
|
-
- If there are uncommitted changes → warn and ask if they want to commit first
|
|
32
|
-
- If on `main` or `master` → warn and ask for confirmation
|
|
33
|
-
- If branch has no upstream → use `git push -u origin <branch>`
|
|
34
|
-
|
|
35
|
-
### Phase 3: Push
|
|
36
|
-
- Normal case: `git push`
|
|
37
|
-
- No upstream: `git push -u origin $(git branch --show-current)`
|
|
38
|
-
- NEVER use `--force` unless the user explicitly says "force push"
|
|
39
|
-
|
|
40
|
-
### Phase 4: Confirm
|
|
41
|
-
Show result: confirm push success with commit count.
|
|
42
|
-
|
|
43
|
-
## Arguments
|
|
44
|
-
|
|
45
|
-
- `/push` — standard push
|
|
46
|
-
- `/push --force` — force push (only when explicitly requested, warn if main/master)
|
|
47
|
-
- `/push origin <branch>` — push to specific remote/branch
|
|
48
|
-
|
|
49
|
-
## Rules
|
|
50
|
-
|
|
51
|
-
- NEVER force push to main/master without double confirmation
|
|
52
|
-
- NEVER use `--no-verify`
|
|
53
|
-
- If push is rejected (non-fast-forward), suggest `git pull --rebase` first
|
|
54
|
-
|
|
55
|
-
## Red Flags
|
|
56
|
-
|
|
57
|
-
| Rationalization | Why it is wrong |
|
|
58
|
-
|---|---|
|
|
59
|
-
| "It was rejected, but `--force-with-lease` is safe enough here" | The lease only compares against the ref you last fetched. A teammate's push that landed since then is still discarded, silently. Rebase and push normally, or ask |
|
|
60
|
-
| "It's my own feature branch, so a force push hurts nobody" | Open PRs, CI runs, review threads and other worktrees read that ref. Rewriting it invalidates all of them. Force only when the user says "force push" in this conversation |
|
|
61
|
-
| "There are uncommitted changes, but they're unrelated to what I'm pushing" | The push ships what is committed, so unrelated work silently stays behind while the branch looks complete to a reviewer. Warn and ask before pushing over a dirty tree |
|
|
62
|
-
| "No upstream is set, so `git push origin HEAD` will do" | That leaves the branch untracked, and every later `git status` / `git push` has to guess. Use `git push -u origin <branch>` so the tracking is recorded once |
|
|
63
|
-
| "The pre-push hook is slow and this is a tiny change" | `--no-verify` is never the answer here — a tiny change is exactly what an unrun hook lets through |
|
|
64
|
-
|
|
65
|
-
## Verification
|
|
66
|
-
|
|
67
|
-
Do not report the push as done until all of the following hold:
|
|
68
|
-
|
|
69
|
-
- `git status` reports the branch up to date with its upstream
|
|
70
|
-
- `git branch -vv` shows an upstream for the current branch (set with `-u` if it had none)
|
|
71
|
-
- `git log @{upstream}..HEAD --oneline` is empty — nothing left unpushed
|
|
72
|
-
- The report states the commit count pushed and the remote/branch they landed on
|
|
73
|
-
- `--force` was used only if the user asked for it in this conversation, and never against main/master without double confirmation
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-ai-review
|
|
3
|
-
description: "Use when the legacy strict AI review profile (code-review-ai-assistant.mdc) is asked for by name — reviews the current branch from its merge-base, committed and uncommitted changes together. NOT for: a code review request that names no profile (review-orchestrator)."
|
|
4
|
-
triggers:
|
|
5
|
-
- "code-ai-review"
|
|
6
|
-
- "AI review baseline"
|
|
7
|
-
- "strict AI review"
|
|
8
|
-
metadata:
|
|
9
|
-
author: "MrCipherSmith"
|
|
10
|
-
version: "1.0.0"
|
|
11
|
-
category: "review"
|
|
12
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
13
|
-
license: "MIT"
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# Code AI Review (только текущая ветка)
|
|
18
|
-
|
|
19
|
-
## Workflow
|
|
20
|
-
|
|
21
|
-
Copy this checklist and track progress:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
Code Review Progress:
|
|
25
|
-
- [ ] Step 1: Determine parent branch and calculate merge-base
|
|
26
|
-
- [ ] Step 2: Collect git diff (committed + local changes)
|
|
27
|
-
- [ ] Step 3: Identify changed files and categorize
|
|
28
|
-
- [ ] Step 4: Review each file following standards
|
|
29
|
-
- [ ] Step 5: Document findings with severity and location
|
|
30
|
-
- [ ] Step 6: Generate report with patches
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Scope Boundaries
|
|
34
|
-
This skill focuses on:
|
|
35
|
-
- Correctness and logic bugs
|
|
36
|
-
- Type safety and TypeScript contract violations
|
|
37
|
-
- Security and null-safety issues
|
|
38
|
-
- Error handling completeness
|
|
39
|
-
- Performance anti-patterns
|
|
40
|
-
|
|
41
|
-
This skill does NOT duplicate:
|
|
42
|
-
- MobX store-specific patterns → covered by code-mobx-store-review
|
|
43
|
-
- Naming/formatting/import organization → covered by code-style-review
|
|
44
|
-
- Architecture opinions and persona-specific insights → covered by code-learned-review
|
|
45
|
-
|
|
46
|
-
## Главное правило: скоуп ревью
|
|
47
|
-
|
|
48
|
-
Ревьюй только изменения, внесённые в текущей ветке с момента её ответвления от родительской.
|
|
49
|
-
|
|
50
|
-
- Если пользователь **не передал commit hash/range**, включай **весь срез ветки от merge-base до рабочего дерева**:
|
|
51
|
-
- закоммиченные (`BASE_SHA..HEAD`)
|
|
52
|
-
- локальные незакоммиченные (`staged/unstaged/untracked`)
|
|
53
|
-
- Если пользователь **явно передал commit hash/range**, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
|
|
54
|
-
- Не ревьюй не связанные с веткой части репозитория.
|
|
55
|
-
|
|
56
|
-
## Scope Detection
|
|
57
|
-
|
|
58
|
-
See shared script: `.metaproject/skills/gdskills/shared/git-merge-base.md`
|
|
59
|
-
|
|
60
|
-
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
|
|
61
|
-
|
|
62
|
-
## Команды, чтобы собрать “срез” для ревью
|
|
63
|
-
|
|
64
|
-
### A) Режим по умолчанию (пользователь НЕ дал hash/range)
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
git status
|
|
68
|
-
|
|
69
|
-
# Закоммиченная часть ветки
|
|
70
|
-
git log --oneline "${BASE_SHA}..HEAD"
|
|
71
|
-
git diff --stat "${BASE_SHA}..HEAD"
|
|
72
|
-
git diff --name-status "${BASE_SHA}..HEAD"
|
|
73
|
-
git diff "${BASE_SHA}..HEAD"
|
|
74
|
-
|
|
75
|
-
# Полный текущий срез от merge-base до рабочего дерева:
|
|
76
|
-
# включает commit'ы + staged + unstaged
|
|
77
|
-
# (untracked смотри через git status / git ls-files)
|
|
78
|
-
git diff --stat "${BASE_SHA}"
|
|
79
|
-
git diff --name-status "${BASE_SHA}"
|
|
80
|
-
git diff "${BASE_SHA}"
|
|
81
|
-
git ls-files --others --exclude-standard
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### B) Режим с явным hash/range
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# Примеры:
|
|
88
|
-
git show --stat --name-status --patch <COMMIT_SHA>
|
|
89
|
-
git log --oneline <FROM_SHA>..<TO_SHA>
|
|
90
|
-
git diff --stat <FROM_SHA>..<TO_SHA>
|
|
91
|
-
git diff --name-status <FROM_SHA>..<TO_SHA>
|
|
92
|
-
git diff <FROM_SHA>..<TO_SHA>
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Правила ревью (обязательно)
|
|
96
|
-
|
|
97
|
-
Ты обязан следовать стандарту ревью из `.metaproject/rules/core/code-review-ai-assistant.mdc`:
|
|
98
|
-
|
|
99
|
-
- Structure output as: short summary -> structured findings by category -> concrete suggestions / optional patches.
|
|
100
|
-
- Prioritize correctness and safety over style.
|
|
101
|
-
- Avoid noise; focus on actionable, high-signal findings.
|
|
102
|
-
- Do not request large refactors unless explicitly asked.
|
|
103
|
-
|
|
104
|
-
## Формат вывода (шаблон подробного отчёта)
|
|
105
|
-
|
|
106
|
-
Пиши ревью по структуре ниже:
|
|
107
|
-
|
|
108
|
-
```markdown
|
|
109
|
-
## Краткое резюме
|
|
110
|
-
<1-3 предложения: что сделано и общий вердикт (OK / needs work).>
|
|
111
|
-
|
|
112
|
-
## Скоуп ревью (только текущая ветка)
|
|
113
|
-
- Ветка: `<BRANCH>`
|
|
114
|
-
- Parent ref: `<PARENT>`
|
|
115
|
-
- Merge-base: `<BASE_SHA>`
|
|
116
|
-
- Режим скоупа: `<default-with-uncommitted | explicit-hash-range>`
|
|
117
|
-
- Коммиты (merge-base..HEAD): <N>
|
|
118
|
-
- Изменённые файлы: <список или количество>
|
|
119
|
-
|
|
120
|
-
## Находки
|
|
121
|
-
### Correctness
|
|
122
|
-
<находки>
|
|
123
|
-
|
|
124
|
-
### Types & Safety
|
|
125
|
-
<находки>
|
|
126
|
-
|
|
127
|
-
### Architecture & State
|
|
128
|
-
<находки>
|
|
129
|
-
|
|
130
|
-
### Readability & Style
|
|
131
|
-
<находки>
|
|
132
|
-
|
|
133
|
-
### Performance
|
|
134
|
-
<находки>
|
|
135
|
-
|
|
136
|
-
### UX/UI
|
|
137
|
-
<находки>
|
|
138
|
-
|
|
139
|
-
### A11y
|
|
140
|
-
<находки>
|
|
141
|
-
|
|
142
|
-
### Tests
|
|
143
|
-
<находки>
|
|
144
|
-
|
|
145
|
-
## Предложенные исправления (patches)
|
|
146
|
-
<минимальные, точечные диффы для самых очевидных фиксов>
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Формат каждой находки (обязательно)
|
|
150
|
-
|
|
151
|
-
Для каждой находки укажи:
|
|
152
|
-
|
|
153
|
-
- **Severity**: `blocker` / `major` / `minor`
|
|
154
|
-
- **Location**: file path + relevant lines/hunk (from the diff)
|
|
155
|
-
- **Problem**: what is wrong
|
|
156
|
-
- **Why it matters**: correctness/safety/perf/maintainability impact
|
|
157
|
-
- **Suggested fix**: concrete change
|
|
158
|
-
- **Optional patch**: provide a minimal unified diff when straightforward
|
|
159
|
-
|
|
160
|
-
Пример блока патча:
|
|
161
|
-
|
|
162
|
-
```diff
|
|
163
|
-
diff --git a/path/file.ts b/path/file.ts
|
|
164
|
-
index 0000000..1111111 100644
|
|
165
|
-
--- a/path/file.ts
|
|
166
|
-
+++ b/path/file.ts
|
|
167
|
-
@@ -1,3 +1,3 @@
|
|
168
|
-
-const x = 1;
|
|
169
|
-
+const x = 2;
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## Scope Boundaries
|
|
175
|
-
|
|
176
|
-
This skill covers **general AI code quality review** following `code-review-ai-assistant.mdc`.
|
|
177
|
-
|
|
178
|
-
| Concern | This skill | Use instead |
|
|
179
|
-
|---------|-----------|-------------|
|
|
180
|
-
| Types, safety, architecture, readability, performance, tests | ✅ YES | — |
|
|
181
|
-
| MobX store internals (actions, computed, reactions, async) | ⚠️ surface-level only | `code-mobx-store-review` for deep store analysis |
|
|
182
|
-
| Review against this project's own learned conventions | ❌ NO | `code-learned-review` |
|
|
183
|
-
| Pure style/naming/pattern audit | ❌ NO | `code-style-review` |
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## Job Context Awareness
|
|
188
|
-
|
|
189
|
-
When dispatched by `job-orchestrator` as part of a job pipeline, the prompt MAY include:
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
JOB_NAME: <job-name>
|
|
193
|
-
CONTEXT_PATH: .metaproject/jobs/<job-name>/ai/context.md
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
If provided and the file exists, read the context document before starting the review. Use it to:
|
|
197
|
-
- Understand which libraries and patterns were intentionally chosen for the implementation
|
|
198
|
-
- Avoid flagging correct library usage as issues (e.g., if context documents the API pattern)
|
|
199
|
-
- Provide more accurate findings by understanding the project's architectural decisions
|
|
200
|
-
- Reference context when justifying suggestions
|
|
201
|
-
|
|
202
|
-
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
## Red Flags
|
|
207
|
-
|
|
208
|
-
This profile is a thin wrapper around `code-review-ai-assistant.mdc`, and it
|
|
209
|
-
predates everything the review domain standardised afterwards. The rows below are
|
|
210
|
-
the ways that gap makes it misfire.
|
|
211
|
-
|
|
212
|
-
| Rationalization | Why it is wrong |
|
|
213
|
-
|----------------|-----------------|
|
|
214
|
-
| "A review was requested, so I will run this profile." | It is a legacy opt-in profile, reached by name or through `review --legacy-profiles`. An unqualified review request belongs to `review-orchestrator`; running this one instead silently drops every specialised lane along with the finding schema. |
|
|
215
|
-
| "The output template has a Severity field, so my report is a review result." | It is not. This profile predates `reviewer-finding.schema.json`: it emits free prose with no machine-readable finding and no class enumeration, so nothing downstream can screen, verify or deduplicate it. Hand the report to a person, never to `keryx review ingest`. |
|
|
216
|
-
| "Half these instructions are in Russian, so the report should be in Russian." | The mixed language is an artefact of when this file was written, not an instruction about the report. Write the report in the language the requester used. |
|
|
217
|
-
| "I noticed a store problem and a naming problem, so I will include them here." | The Scope Boundaries table above routes those to `code-mobx-store-review` and `code-style-review`. A finding filed under the wrong profile is a finding the requester did not ask this profile for, and it arrives without the checks that lane would have applied. |
|
|
218
|
-
| "One entry per occurrence is more thorough." | It is longer, not more thorough. Where one shape repeats, report it once and list every site — ten entries that are one problem hide the other nine. |
|
|
219
|
-
| "I cannot reach the code path, but the pattern is usually wrong." | Then it is an observation, not a finding. Say what input, call or condition would reach it, and let the reader decide. |
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## Verification
|
|
224
|
-
|
|
225
|
-
Report done only once all of these hold:
|
|
226
|
-
|
|
227
|
-
- The requester asked for this profile by name, or through
|
|
228
|
-
`review --legacy-profiles`. If they asked for "a review", stop and hand the
|
|
229
|
-
request to `review-orchestrator` instead.
|
|
230
|
-
- The scope block carries the real branch, parent ref, merge-base and scope mode —
|
|
231
|
-
not the template placeholders.
|
|
232
|
-
- Every finding carries Severity, Location (path plus the lines from the diff),
|
|
233
|
-
Problem, Why it matters and a concrete Suggested fix; a patch where the fix is
|
|
234
|
-
a line or two.
|
|
235
|
-
- Every finding is anchored to a line the branch slice actually changed. Nothing
|
|
236
|
-
outside `merge-base..worktree` is discussed.
|
|
237
|
-
- The report is free prose by design, so it is delivered to a person and is not
|
|
238
|
-
fed into the managed-review pipeline.
|