Sync ctx c1d8405
Browse filesGitHub commit: c1d8405b4f0c57d84408e49871fc027890e40a5d
This view is limited to 50 files because it contains too many changes. See raw diff
- .agents/skills/MATTP0COCK-LICENSE +21 -0
- .agents/skills/README.md +15 -0
- .agents/skills/ask-matt/SKILL.md +19 -0
- .agents/skills/ask-matt/agents/openai.yaml +5 -0
- .agents/skills/ask-matt/references/skill-map.md +19 -0
- .agents/skills/code-review/SKILL.md +44 -0
- .agents/skills/code-review/agents/openai.yaml +3 -0
- .agents/skills/code-review/references/review-heuristics.md +37 -0
- .agents/skills/codebase-design/DEEPENING.md +50 -0
- .agents/skills/codebase-design/DESIGN-IT-TWICE.md +53 -0
- .agents/skills/codebase-design/SKILL.md +54 -0
- .agents/skills/codebase-design/agents/openai.yaml +3 -0
- .agents/skills/diagnosing-bugs/SKILL.md +49 -0
- .agents/skills/diagnosing-bugs/agents/openai.yaml +3 -0
- .agents/skills/diagnosing-bugs/references/debugging-playbook.md +54 -0
- .agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
- .agents/skills/domain-modeling/ADR-FORMAT.md +24 -0
- .agents/skills/domain-modeling/CONTEXT-FORMAT.md +37 -0
- .agents/skills/domain-modeling/SKILL.md +38 -0
- .agents/skills/domain-modeling/agents/openai.yaml +3 -0
- .agents/skills/grill-me/SKILL.md +6 -0
- .agents/skills/grill-me/agents/openai.yaml +5 -0
- .agents/skills/grill-with-docs/SKILL.md +6 -0
- .agents/skills/grill-with-docs/agents/openai.yaml +5 -0
- .agents/skills/grilling/SKILL.md +12 -0
- .agents/skills/grilling/agents/openai.yaml +3 -0
- .agents/skills/handoff/SKILL.md +14 -0
- .agents/skills/handoff/agents/openai.yaml +5 -0
- .agents/skills/implement/SKILL.md +22 -0
- .agents/skills/implement/agents/openai.yaml +5 -0
- .agents/skills/improve-codebase-architecture/HTML-REPORT.md +41 -0
- .agents/skills/improve-codebase-architecture/SKILL.md +58 -0
- .agents/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
- .agents/skills/prototype/LOGIC.md +39 -0
- .agents/skills/prototype/SKILL.md +34 -0
- .agents/skills/prototype/UI.md +44 -0
- .agents/skills/prototype/agents/openai.yaml +3 -0
- .agents/skills/research/SKILL.md +19 -0
- .agents/skills/research/agents/openai.yaml +3 -0
- .agents/skills/resolving-merge-conflicts/SKILL.md +24 -0
- .agents/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
- .agents/skills/setup-matt-pocock-skills/SKILL.md +31 -0
- .agents/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
- .agents/skills/setup-matt-pocock-skills/domain.md +51 -0
- .agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +45 -0
- .agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +46 -0
- .agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +30 -0
- .agents/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
- .agents/skills/tdd/SKILL.md +38 -0
- .agents/skills/tdd/agents/openai.yaml +3 -0
.agents/skills/MATTP0COCK-LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Matt Pocock
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
.agents/skills/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Matt Pocock skills for Codex
|
| 2 |
+
|
| 3 |
+
This directory contains 22 skills adapted from
|
| 4 |
+
[`mattpocock/skills`](https://github.com/mattpocock/skills), installed for
|
| 5 |
+
Codex through the Agent Skills standard. The upstream baseline is
|
| 6 |
+
`ed37663cc5fbef691ddfecd080dff42f7e7e350d`; the local copies intentionally use
|
| 7 |
+
lighter, judgment-based entrypoints and progressive disclosure.
|
| 8 |
+
|
| 9 |
+
`skills-lock.json` records that upstream baseline. Review upstream changes
|
| 10 |
+
before merging them; a blind skills update may overwrite the local adaptations.
|
| 11 |
+
|
| 12 |
+
The upstream Claude plugin is not required. Deprecated, in-progress, personal,
|
| 13 |
+
and miscellaneous skills are intentionally excluded.
|
| 14 |
+
|
| 15 |
+
See `MATTP0COCK-LICENSE` for the upstream MIT license.
|
.agents/skills/ask-matt/SKILL.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: ask-matt
|
| 3 |
+
description: Recommend the smallest Matt Pocock skill or short skill sequence that fits the user's current goal.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Route to a skill
|
| 7 |
+
|
| 8 |
+
1. Identify the user's immediate outcome, the context already available, and
|
| 9 |
+
whether they want advice, investigation, planning, implementation, or
|
| 10 |
+
review.
|
| 11 |
+
2. Recommend the smallest skill that materially helps. Use a sequence only
|
| 12 |
+
when each handoff adds value; do not force the full idea-to-ship flow.
|
| 13 |
+
3. Explain the recommendation and any important tradeoff in a few sentences.
|
| 14 |
+
If two choices are genuinely close, present both and recommend one.
|
| 15 |
+
4. Mention setup only when the chosen workflow depends on missing tracker or
|
| 16 |
+
domain configuration.
|
| 17 |
+
|
| 18 |
+
Read [references/skill-map.md](references/skill-map.md) when the choice is not
|
| 19 |
+
obvious or the user asks to see the available routes.
|
.agents/skills/ask-matt/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Ask Matt"
|
| 3 |
+
short_description: "Find the right skill or workflow"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/ask-matt/references/skill-map.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Skill map
|
| 2 |
+
|
| 3 |
+
Use this as a routing reference, not a mandatory pipeline.
|
| 4 |
+
|
| 5 |
+
| Need | Likely skill | Notes |
|
| 6 |
+
|---|---|---|
|
| 7 |
+
| Stress-test an idea | `grilling`, `grill-me`, `grill-with-docs` | Choose the stateful variant only when durable domain notes are useful. |
|
| 8 |
+
| Resolve a design question with evidence | `prototype`, `research` | Prototype behavior or UI; research facts and sources. |
|
| 9 |
+
| Plan an unusually large, unclear effort | `wayfinder` | Use only when one session cannot expose the route. |
|
| 10 |
+
| Turn settled thinking into work | `to-spec`, `to-tickets` | A spec is optional; tickets help when work needs coordination. |
|
| 11 |
+
| Implement or test-first build | `implement`, `tdd` | Invoke TDD when test-first development is the user's chosen approach. |
|
| 12 |
+
| Review a change | `code-review` | Compare the diff with repository standards and the intended behavior. |
|
| 13 |
+
| Diagnose a difficult failure | `diagnosing-bugs` | Establish useful feedback before committing to a theory. |
|
| 14 |
+
| Resolve Git conflicts | `resolving-merge-conflicts` | Preserve intent and escalate irreconcilable ambiguity. |
|
| 15 |
+
| Improve architecture or language | `improve-codebase-architecture`, `codebase-design`, `domain-modeling` | Select architecture, interface, or domain vocabulary based on the question. |
|
| 16 |
+
| Triage incoming work | `triage` | Use the repository's configured tracker conventions. |
|
| 17 |
+
| Carry context to another session | `handoff` | Reference existing artifacts instead of copying them. |
|
| 18 |
+
| Build a learning workspace | `teach` | Persist artifacts only when multi-session learning benefits from them. |
|
| 19 |
+
| Configure or maintain skills | `setup-matt-pocock-skills`, `writing-great-skills` | Setup should follow existing repository conventions. |
|
.agents/skills/code-review/SKILL.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: code-review
|
| 3 |
+
description: Review a Git diff against repository standards and its originating requirements. Use for pull requests, branches, work-in-progress changes, or changes since a commit, tag, or merge-base.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Review code changes
|
| 7 |
+
|
| 8 |
+
## Establish scope
|
| 9 |
+
|
| 10 |
+
Honor a fixed point supplied by the user. Otherwise infer a sensible comparison
|
| 11 |
+
from the repository state, such as the default-branch merge-base. Ask only when
|
| 12 |
+
different choices would materially change the review.
|
| 13 |
+
|
| 14 |
+
Verify that the ref resolves and inspect the diff and relevant commit messages.
|
| 15 |
+
Report an empty or unavailable comparison instead of manufacturing findings.
|
| 16 |
+
|
| 17 |
+
## Collect references
|
| 18 |
+
|
| 19 |
+
Use the repository's actual standards and the originating issue, PRD, or spec
|
| 20 |
+
when available. Follow repository conventions for fetching tracker context. If
|
| 21 |
+
requirements cannot be found, review the standards axis and state that spec
|
| 22 |
+
conformance was not verified.
|
| 23 |
+
|
| 24 |
+
## Evaluate two axes
|
| 25 |
+
|
| 26 |
+
- **Standards:** Does the change follow documented repository conventions and
|
| 27 |
+
avoid material design regressions?
|
| 28 |
+
- **Spec:** Does it implement the requested behavior without omissions,
|
| 29 |
+
incorrect behavior, or unrelated scope?
|
| 30 |
+
|
| 31 |
+
Use deterministic checks for properties tooling can decide. For qualitative
|
| 32 |
+
review, load [review heuristics](references/review-heuristics.md) only when the
|
| 33 |
+
diff warrants deeper design analysis.
|
| 34 |
+
|
| 35 |
+
The axes are independent and may be evaluated concurrently when the diff is
|
| 36 |
+
large enough to benefit. Keep a small review local, and avoid parallel work
|
| 37 |
+
when coordination would cost more than it saves.
|
| 38 |
+
|
| 39 |
+
## Report
|
| 40 |
+
|
| 41 |
+
Lead with actionable findings, citing the affected file and evidence. Separate
|
| 42 |
+
documented violations from judgment calls and keep Standards and Spec findings
|
| 43 |
+
distinct so one axis cannot mask the other. State unavailable evidence and
|
| 44 |
+
report when no material findings remain.
|
.agents/skills/code-review/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Code Review"
|
| 3 |
+
short_description: "Review a diff on standards and spec"
|
.agents/skills/code-review/references/review-heuristics.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Review heuristics
|
| 2 |
+
|
| 3 |
+
Use these heuristics when the diff raises design questions that repository
|
| 4 |
+
standards and deterministic tools do not settle. Repository conventions take
|
| 5 |
+
precedence. Label these as judgment calls, not hard violations.
|
| 6 |
+
|
| 7 |
+
## Common design smells
|
| 8 |
+
|
| 9 |
+
- **Mysterious name:** A name does not reveal what a value or operation means.
|
| 10 |
+
- **Duplicated code:** The same logic shape appears in multiple changed sites.
|
| 11 |
+
- **Feature envy:** A method depends more on another object's data than its own.
|
| 12 |
+
- **Data clumps:** The same fields or parameters repeatedly travel together.
|
| 13 |
+
- **Primitive obsession:** A primitive stands in for a meaningful domain type.
|
| 14 |
+
- **Repeated conditionals:** Multiple sites branch on the same type or state.
|
| 15 |
+
- **Shotgun surgery:** One behavior change requires scattered edits.
|
| 16 |
+
- **Divergent change:** A module changes for several unrelated reasons.
|
| 17 |
+
- **Speculative generality:** An abstraction serves no current requirement.
|
| 18 |
+
- **Message chains:** A caller depends on a long navigation path.
|
| 19 |
+
- **Middle man:** A layer mostly delegates without adding a useful boundary.
|
| 20 |
+
- **Refused bequest:** An implementation inherits behavior it mostly rejects.
|
| 21 |
+
|
| 22 |
+
Prefer the smallest correction that improves the changed behavior. Do not turn a
|
| 23 |
+
review into an unrelated redesign, and do not repeat findings already decided by
|
| 24 |
+
formatters, linters, type checkers, or tests.
|
| 25 |
+
|
| 26 |
+
## Spec questions
|
| 27 |
+
|
| 28 |
+
Check for:
|
| 29 |
+
|
| 30 |
+
- requested behavior that is missing or only partially implemented;
|
| 31 |
+
- behavior that contradicts the source requirement;
|
| 32 |
+
- added scope without a clear requirement;
|
| 33 |
+
- success paths that work while relevant failures or edge cases do not; and
|
| 34 |
+
- implementation details that make a stated requirement untestable.
|
| 35 |
+
|
| 36 |
+
Tie each finding to the source requirement when one exists. If no spec is
|
| 37 |
+
available, describe the resulting limit rather than inferring requirements.
|
.agents/skills/codebase-design/DEEPENING.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deepening
|
| 2 |
+
|
| 3 |
+
How to deepen a cluster of shallow modules safely, given its dependencies. Assumes the vocabulary in [SKILL.md](SKILL.md) — **module**, **interface**, **seam**, **adapter**.
|
| 4 |
+
|
| 5 |
+
## Dependency categories
|
| 6 |
+
|
| 7 |
+
When assessing a candidate for deepening, classify its dependencies. The category determines how the deepened module is tested across its seam.
|
| 8 |
+
|
| 9 |
+
### 1. In-process
|
| 10 |
+
|
| 11 |
+
Pure computation, in-memory state, no I/O. These are often the safest candidates
|
| 12 |
+
to consolidate and test through a new interface; no adapter is usually needed.
|
| 13 |
+
|
| 14 |
+
### 2. Local-substitutable
|
| 15 |
+
|
| 16 |
+
Dependencies that have local test stand-ins (PGLite for Postgres, in-memory
|
| 17 |
+
filesystem). Consolidation is attractive when the stand-in is representative
|
| 18 |
+
enough. Keep the seam internal unless callers genuinely need to select an
|
| 19 |
+
adapter.
|
| 20 |
+
|
| 21 |
+
### 3. Remote but owned (Ports & Adapters)
|
| 22 |
+
|
| 23 |
+
Your own services across a network boundary (microservices, internal APIs).
|
| 24 |
+
Consider a **port** at the seam when transport variation or isolation repays the
|
| 25 |
+
indirection. The deep module can own the policy while production and tests use
|
| 26 |
+
appropriate adapters.
|
| 27 |
+
|
| 28 |
+
Recommendation shape: *"Define a port at the seam, implement an HTTP adapter for production and an in-memory adapter for testing, so the logic sits in one deep module even though it's deployed across a network."*
|
| 29 |
+
|
| 30 |
+
### 4. True external (Mock)
|
| 31 |
+
|
| 32 |
+
Third-party services (Stripe, Twilio, etc.) you don't control. An injected port
|
| 33 |
+
and test adapter often keep vendor behavior outside the module's policy.
|
| 34 |
+
|
| 35 |
+
## Seam discipline
|
| 36 |
+
|
| 37 |
+
- **Require a concrete reason for a seam.** Multiple adapters are strong
|
| 38 |
+
evidence, but ownership, policy, fault isolation, or an expensive dependency
|
| 39 |
+
can also justify one.
|
| 40 |
+
- **Keep internal seams internal by default.** Expose them only when callers need
|
| 41 |
+
the variation, not solely because tests use it.
|
| 42 |
+
|
| 43 |
+
## Testing strategy: replace, don't layer
|
| 44 |
+
|
| 45 |
+
- Remove superseded unit tests when interface-level tests provide equivalent or
|
| 46 |
+
better confidence; retain focused tests that still catch distinct risks.
|
| 47 |
+
- Write new tests at the deepened module's interface. The **interface is the test surface**.
|
| 48 |
+
- Tests assert on observable outcomes through the interface, not internal state.
|
| 49 |
+
- Prefer tests that survive internal refactors and describe behavior rather than
|
| 50 |
+
structure.
|
.agents/skills/codebase-design/DESIGN-IT-TWICE.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Design It Twice
|
| 2 |
+
|
| 3 |
+
When materially different interfaces are plausible, compare more than one
|
| 4 |
+
design. Parallel agents can accelerate independent exploration, but local
|
| 5 |
+
sketches are enough for a small problem.
|
| 6 |
+
|
| 7 |
+
Uses the vocabulary in [SKILL.md](SKILL.md) — **module**, **interface**, **seam**, **adapter**, **leverage**.
|
| 8 |
+
|
| 9 |
+
## Process
|
| 10 |
+
|
| 11 |
+
### 1. Frame the problem space
|
| 12 |
+
|
| 13 |
+
Before exploring alternatives, frame the problem space:
|
| 14 |
+
|
| 15 |
+
- The constraints any new interface would need to satisfy
|
| 16 |
+
- The dependencies it would rely on, and which category they fall into (see [DEEPENING.md](DEEPENING.md))
|
| 17 |
+
- A rough illustrative code sketch to ground the constraints — not a proposal, just a way to make the constraints concrete
|
| 18 |
+
|
| 19 |
+
Share the framing when user feedback would materially improve the design.
|
| 20 |
+
|
| 21 |
+
### 2. Explore alternatives
|
| 22 |
+
|
| 23 |
+
Produce two or more meaningfully different interfaces. Use parallel sub-agents
|
| 24 |
+
when the alternatives divide cleanly and the expected insight exceeds
|
| 25 |
+
coordination cost. Otherwise sketch them locally.
|
| 26 |
+
|
| 27 |
+
Give each exploration the same constraints and a distinct optimization target,
|
| 28 |
+
for example:
|
| 29 |
+
|
| 30 |
+
- Alternative 1: "Minimize the interface — aim for 1–3 entry points max. Maximise leverage per entry point."
|
| 31 |
+
- Alternative 2: "Maximise flexibility — support many use cases and extension."
|
| 32 |
+
- Alternative 3: "Optimise for the most common caller — make the default case trivial."
|
| 33 |
+
- Alternative 4 (if applicable): "Design around ports and adapters for
|
| 34 |
+
cross-seam dependencies."
|
| 35 |
+
|
| 36 |
+
Use the project's vocabulary. The terms in [SKILL.md](SKILL.md) are lenses, not a
|
| 37 |
+
required replacement for established domain language.
|
| 38 |
+
|
| 39 |
+
For each alternative, capture:
|
| 40 |
+
|
| 41 |
+
1. Interface (types, methods, params — plus invariants, ordering, error modes)
|
| 42 |
+
2. Usage example showing how callers use it
|
| 43 |
+
3. What the implementation hides behind the seam
|
| 44 |
+
4. Dependency strategy and adapters (see [DEEPENING.md](DEEPENING.md))
|
| 45 |
+
5. Trade-offs — where leverage is high, where it's thin
|
| 46 |
+
|
| 47 |
+
### 3. Present and compare
|
| 48 |
+
|
| 49 |
+
Present the designs at a level proportional to the decision. Compare **depth**,
|
| 50 |
+
**locality**, **seam placement**, migration cost, and fit with existing code.
|
| 51 |
+
|
| 52 |
+
Recommend the strongest design and explain its trade-offs. Propose a hybrid only
|
| 53 |
+
when it is more coherent than either source design.
|
.agents/skills/codebase-design/SKILL.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: codebase-design
|
| 3 |
+
description: Design or improve module interfaces using deep-module heuristics. Use when deciding where a seam belongs, reducing caller-facing complexity, improving testability or navigability, or comparing module designs.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Codebase Design
|
| 7 |
+
|
| 8 |
+
Seek **deep modules**: substantial useful behavior behind a small, stable
|
| 9 |
+
interface. Use the concepts below as design lenses, while matching the
|
| 10 |
+
repository's established domain language.
|
| 11 |
+
|
| 12 |
+
## Working vocabulary
|
| 13 |
+
|
| 14 |
+
- **Module**: a coherent unit with an interface and implementation, at any scale.
|
| 15 |
+
- **Interface**: everything callers must know, including invariants and failure
|
| 16 |
+
modes—not just a type signature.
|
| 17 |
+
- **Seam**: a location where behavior can vary without editing its callers.
|
| 18 |
+
- **Adapter**: an implementation that connects at a seam.
|
| 19 |
+
- **Depth**: useful capability relative to interface complexity.
|
| 20 |
+
- **Leverage**: capability gained by callers; **locality**: change and knowledge
|
| 21 |
+
concentrated for maintainers.
|
| 22 |
+
|
| 23 |
+
Translate these terms to the project's vocabulary when that makes the design
|
| 24 |
+
clearer. Consistency with the codebase is more valuable than enforcing a private
|
| 25 |
+
lexicon.
|
| 26 |
+
|
| 27 |
+
## Design workflow
|
| 28 |
+
|
| 29 |
+
1. Map representative callers, responsibilities, dependencies, and existing
|
| 30 |
+
contracts.
|
| 31 |
+
2. Look for coordination or policy that can move behind a smaller interface.
|
| 32 |
+
3. Place seams where variation, ownership, or test isolation justifies them.
|
| 33 |
+
4. Compare alternatives when the choice is consequential.
|
| 34 |
+
5. Validate the candidate with representative caller code and tests.
|
| 35 |
+
|
| 36 |
+
## Heuristics, not laws
|
| 37 |
+
|
| 38 |
+
- Reduce methods, parameters, ordering constraints, and configuration callers
|
| 39 |
+
must understand.
|
| 40 |
+
- Use the deletion test: if removing a module merely spreads its complexity
|
| 41 |
+
across callers, it was likely earning its keep.
|
| 42 |
+
- Treat pass-through layers skeptically, but keep them when they provide a real
|
| 43 |
+
compatibility, ownership, policy, or navigation boundary.
|
| 44 |
+
- Introduce dependency seams when actual variation or test isolation repays the
|
| 45 |
+
indirection; avoid interfaces justified only by hypothetical futures.
|
| 46 |
+
- Prefer tests through observable interfaces, while allowing focused internal
|
| 47 |
+
tests when they provide cheaper or more precise feedback.
|
| 48 |
+
- Favor explicit dependencies and returned results when they improve control and
|
| 49 |
+
testability; side effects and internally created dependencies can still be
|
| 50 |
+
appropriate at well-defined boundaries.
|
| 51 |
+
|
| 52 |
+
Read [DEEPENING.md](DEEPENING.md) when consolidating a cluster across dependency
|
| 53 |
+
boundaries. Read [DESIGN-IT-TWICE.md](DESIGN-IT-TWICE.md) when materially
|
| 54 |
+
different interface designs can be explored independently.
|
.agents/skills/codebase-design/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Codebase Design"
|
| 3 |
+
short_description: "Vocabulary for deep-module design"
|
.agents/skills/diagnosing-bugs/SKILL.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: diagnosing-bugs
|
| 3 |
+
description: Diagnose hard bugs and performance regressions with reproducible evidence, focused hypotheses, and proportional instrumentation. Use when something is broken, failing, throwing, intermittently wrong, or unexpectedly slow.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Diagnosing Bugs
|
| 7 |
+
|
| 8 |
+
Start from evidence and adapt the depth of the investigation to the problem.
|
| 9 |
+
Read relevant repository context and architectural decisions when they exist.
|
| 10 |
+
|
| 11 |
+
## Establish a useful signal
|
| 12 |
+
|
| 13 |
+
Reproduce the reported symptom with the cheapest signal that distinguishes
|
| 14 |
+
broken from fixed. A focused test or script is ideal when practical; logs,
|
| 15 |
+
traces, snapshots, comparisons, or measured timings may be better for other
|
| 16 |
+
failures. Tighten the loop by improving speed, specificity, and determinism.
|
| 17 |
+
|
| 18 |
+
If an exact reproduction is unavailable, continue with the strongest evidence
|
| 19 |
+
available and state the limitation. Request an artifact, access, or temporary
|
| 20 |
+
instrumentation only when it would materially improve the diagnosis.
|
| 21 |
+
|
| 22 |
+
For feedback-loop options and debugging tactics, load the
|
| 23 |
+
[debugging playbook](references/debugging-playbook.md) as needed. For a rare
|
| 24 |
+
manual reproduction, adapt
|
| 25 |
+
[`scripts/hitl-loop.template.sh`](scripts/hitl-loop.template.sh).
|
| 26 |
+
|
| 27 |
+
## Narrow and explain
|
| 28 |
+
|
| 29 |
+
Minimize the reproducing scenario when doing so will shrink the search space.
|
| 30 |
+
Form a small ranked set of falsifiable hypotheses from the evidence, then choose
|
| 31 |
+
probes that best distinguish them. Share hypotheses with the user when their
|
| 32 |
+
domain knowledge could redirect the investigation; do not make routine progress
|
| 33 |
+
depend on a checkpoint.
|
| 34 |
+
|
| 35 |
+
Use targeted instrumentation at boundaries that separate plausible causes.
|
| 36 |
+
Change as little as practical per probe. For performance regressions, establish
|
| 37 |
+
a baseline and use profiling, query plans, or bisection before optimizing.
|
| 38 |
+
|
| 39 |
+
## Fix and verify
|
| 40 |
+
|
| 41 |
+
Add a regression test when a stable seam can represent the real failure. If it
|
| 42 |
+
cannot, explain the coverage gap rather than adding a misleading test. Apply the
|
| 43 |
+
smallest justified fix, then rerun both the focused signal and relevant nearby
|
| 44 |
+
checks.
|
| 45 |
+
|
| 46 |
+
Remove temporary instrumentation and artifacts unless the user wants to retain
|
| 47 |
+
them. Report the observed cause, the evidence that supports it, what was
|
| 48 |
+
verified, and any remaining uncertainty. Recommend architectural follow-up only
|
| 49 |
+
when the diagnosis exposes a concrete recurring weakness.
|
.agents/skills/diagnosing-bugs/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Diagnosing Bugs"
|
| 3 |
+
short_description: "Diagnose hard bugs and regressions"
|
.agents/skills/diagnosing-bugs/references/debugging-playbook.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Debugging playbook
|
| 2 |
+
|
| 3 |
+
Load the sections that fit the failure. These are options, not mandatory phases.
|
| 4 |
+
|
| 5 |
+
## Feedback-loop options
|
| 6 |
+
|
| 7 |
+
- A focused unit, integration, or end-to-end test.
|
| 8 |
+
- A CLI or HTTP invocation with fixture input and a precise assertion.
|
| 9 |
+
- A browser script that observes relevant DOM, console, or network behavior.
|
| 10 |
+
- Replay of a captured request, trace, event stream, or crash artifact.
|
| 11 |
+
- A small harness around the affected service or function.
|
| 12 |
+
- Property or fuzz testing for input-dependent failures.
|
| 13 |
+
- `git bisect run` when the failure appeared between known revisions.
|
| 14 |
+
- Differential execution across versions, configurations, or environments.
|
| 15 |
+
- A human-assisted script when automation cannot reach the symptom directly.
|
| 16 |
+
|
| 17 |
+
Prefer a signal that exercises the user's actual symptom. Improve it where
|
| 18 |
+
useful by narrowing setup, pinning time or randomness, isolating external state,
|
| 19 |
+
or increasing the reproduction rate of intermittent failures.
|
| 20 |
+
|
| 21 |
+
## Intermittent failures
|
| 22 |
+
|
| 23 |
+
Measure a baseline reproduction rate. Repetition, controlled concurrency,
|
| 24 |
+
stress, or targeted timing changes can make the failure easier to observe.
|
| 25 |
+
Preserve seeds, inputs, schedules, and environment details that explain a
|
| 26 |
+
successful reproduction.
|
| 27 |
+
|
| 28 |
+
## Hypotheses and probes
|
| 29 |
+
|
| 30 |
+
Frame a hypothesis as a prediction:
|
| 31 |
+
|
| 32 |
+
> If X is the cause, changing or observing Y should produce Z.
|
| 33 |
+
|
| 34 |
+
Favor probes that distinguish several plausible causes. Debuggers and REPL
|
| 35 |
+
inspection often provide cleaner evidence than broad logging. If temporary logs
|
| 36 |
+
are appropriate, use a unique searchable prefix and remove them after use.
|
| 37 |
+
|
| 38 |
+
For performance problems, compare measured baselines and inspect profiles,
|
| 39 |
+
query plans, allocation patterns, or revision history before choosing a fix.
|
| 40 |
+
|
| 41 |
+
## Regression coverage
|
| 42 |
+
|
| 43 |
+
A useful regression test represents the real failure at a stable seam. Avoid a
|
| 44 |
+
shallow test that cannot exercise the failing interaction. When no honest seam
|
| 45 |
+
exists, record that architectural limitation and rely on the strongest
|
| 46 |
+
available reproduction for verification.
|
| 47 |
+
|
| 48 |
+
After the fix, consider:
|
| 49 |
+
|
| 50 |
+
- whether the original symptom is gone;
|
| 51 |
+
- whether focused and nearby regression checks pass;
|
| 52 |
+
- whether temporary instrumentation and harnesses remain;
|
| 53 |
+
- whether the explanation separates observation from inference; and
|
| 54 |
+
- whether the same structural weakness is likely to recur.
|
.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Human-in-the-loop reproduction loop.
|
| 3 |
+
# Copy this file, edit the steps below, and run it.
|
| 4 |
+
# The agent runs the script; the user follows prompts in their terminal.
|
| 5 |
+
#
|
| 6 |
+
# Usage:
|
| 7 |
+
# bash hitl-loop.template.sh
|
| 8 |
+
#
|
| 9 |
+
# Two helpers:
|
| 10 |
+
# step "<instruction>" → show instruction, wait for Enter
|
| 11 |
+
# capture VAR "<question>" → show question, read response into VAR
|
| 12 |
+
#
|
| 13 |
+
# At the end, captured values are printed as KEY=VALUE for the agent to parse.
|
| 14 |
+
|
| 15 |
+
set -euo pipefail
|
| 16 |
+
|
| 17 |
+
step() {
|
| 18 |
+
printf '\n>>> %s\n' "$1"
|
| 19 |
+
read -r -p " [Enter when done] " _
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
capture() {
|
| 23 |
+
local var="$1" question="$2" answer
|
| 24 |
+
printf '\n>>> %s\n' "$question"
|
| 25 |
+
read -r -p " > " answer
|
| 26 |
+
printf -v "$var" '%s' "$answer"
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
# --- edit below ---------------------------------------------------------
|
| 30 |
+
|
| 31 |
+
step "Open the app at http://localhost:3000 and sign in."
|
| 32 |
+
|
| 33 |
+
capture ERRORED "Click the 'Export' button. Did it throw an error? (y/n)"
|
| 34 |
+
|
| 35 |
+
capture ERROR_MSG "Paste the error message (or 'none'):"
|
| 36 |
+
|
| 37 |
+
# --- edit above ---------------------------------------------------------
|
| 38 |
+
|
| 39 |
+
printf '\n--- Captured ---\n'
|
| 40 |
+
printf 'ERRORED=%s\n' "$ERRORED"
|
| 41 |
+
printf 'ERROR_MSG=%s\n' "$ERROR_MSG"
|
.agents/skills/domain-modeling/ADR-FORMAT.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADR format
|
| 2 |
+
|
| 3 |
+
Follow the repository's existing ADR location, numbering, and status
|
| 4 |
+
conventions. When none exist, a decision can be recorded minimally:
|
| 5 |
+
|
| 6 |
+
```markdown
|
| 7 |
+
# Short decision title
|
| 8 |
+
|
| 9 |
+
Describe the context, the decision, and why this option was chosen.
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
Add sections such as status, considered options, consequences, or supersession
|
| 13 |
+
only when they preserve useful information.
|
| 14 |
+
|
| 15 |
+
An ADR is most valuable when the decision is:
|
| 16 |
+
|
| 17 |
+
- costly to reverse;
|
| 18 |
+
- surprising without historical context; and
|
| 19 |
+
- the result of a real tradeoff.
|
| 20 |
+
|
| 21 |
+
Good candidates include system boundaries, integration patterns, technology
|
| 22 |
+
choices with meaningful lock-in, non-obvious constraints, and deliberate
|
| 23 |
+
deviations from the expected design. Routine implementation choices and
|
| 24 |
+
temporary priorities usually do not need an ADR.
|
.agents/skills/domain-modeling/CONTEXT-FORMAT.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Domain context format
|
| 2 |
+
|
| 3 |
+
Follow the repository's existing glossary or context-map convention. When none
|
| 4 |
+
exists and a new artifact is useful, this is a compact starting point.
|
| 5 |
+
|
| 6 |
+
```markdown
|
| 7 |
+
# Context name
|
| 8 |
+
|
| 9 |
+
One or two sentences describing the domain context and why it exists.
|
| 10 |
+
|
| 11 |
+
## Language
|
| 12 |
+
|
| 13 |
+
**Canonical term:** A concise, project-specific definition.
|
| 14 |
+
_Avoid:_ Ambiguous or deprecated synonyms, when naming them prevents confusion.
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
Include only concepts that carry special meaning in this domain. Define what a
|
| 18 |
+
term is and how it differs from nearby concepts; keep implementation details in
|
| 19 |
+
specs, code, or ADRs.
|
| 20 |
+
|
| 21 |
+
For repositories with several bounded contexts, a root context map may list
|
| 22 |
+
each context, its location, and important relationships:
|
| 23 |
+
|
| 24 |
+
```markdown
|
| 25 |
+
# Context map
|
| 26 |
+
|
| 27 |
+
- **Ordering:** Receives and tracks customer orders.
|
| 28 |
+
- **Billing:** Generates invoices and processes payment.
|
| 29 |
+
|
| 30 |
+
## Relationships
|
| 31 |
+
|
| 32 |
+
- Ordering emits `OrderPlaced`; Fulfillment consumes it.
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Create or split context files only when the model actually has distinct
|
| 36 |
+
boundaries and the artifact will be maintained. Do not force a multi-context
|
| 37 |
+
layout from directory structure alone.
|
.agents/skills/domain-modeling/SKILL.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: domain-modeling
|
| 3 |
+
description: Clarify domain concepts, language, boundaries, and durable architectural decisions. Use when terminology is ambiguous, the user is shaping a domain model, or a design depends on resolving what concepts mean.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model the domain
|
| 7 |
+
|
| 8 |
+
Build a precise shared understanding of the concepts that matter to the current
|
| 9 |
+
decision. Read existing glossaries, context maps, ADRs, code, and tests when
|
| 10 |
+
they provide relevant evidence.
|
| 11 |
+
|
| 12 |
+
## Sharpen the model
|
| 13 |
+
|
| 14 |
+
- Identify overloaded terms, hidden distinctions, and conflicting definitions.
|
| 15 |
+
- Use concrete scenarios and edge cases to test whether concepts and boundaries
|
| 16 |
+
hold.
|
| 17 |
+
- Compare the stated model with behavior in the code and surface material
|
| 18 |
+
contradictions.
|
| 19 |
+
- Propose clear language when ambiguity is blocking progress, while respecting
|
| 20 |
+
established repository terminology that remains accurate.
|
| 21 |
+
|
| 22 |
+
Ask the user to resolve a term only when their intent cannot be inferred safely
|
| 23 |
+
and the distinction affects the outcome.
|
| 24 |
+
|
| 25 |
+
## Record durable knowledge proportionally
|
| 26 |
+
|
| 27 |
+
Update a glossary or context map when the user requests it or when a resolved
|
| 28 |
+
term is durable, project-specific, and useful beyond the current conversation.
|
| 29 |
+
Follow an existing repository format first; otherwise use the
|
| 30 |
+
[context format](CONTEXT-FORMAT.md) as a lightweight starting point.
|
| 31 |
+
|
| 32 |
+
Record an ADR only when a decision is costly to reverse, surprising without its
|
| 33 |
+
context, and based on a meaningful tradeoff. Follow existing ADR conventions or
|
| 34 |
+
use the [ADR format](ADR-FORMAT.md). Do not create artifacts merely to complete
|
| 35 |
+
the workflow.
|
| 36 |
+
|
| 37 |
+
Keep domain definitions separate from implementation plans. Report unresolved
|
| 38 |
+
ambiguity and artifact changes explicitly.
|
.agents/skills/domain-modeling/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Domain Modeling"
|
| 3 |
+
short_description: "Build and sharpen a domain model"
|
.agents/skills/grill-me/SKILL.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: grill-me
|
| 3 |
+
description: A relentless interview to sharpen a plan or design.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
Run a `/grilling` session.
|
.agents/skills/grill-me/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Grill Me"
|
| 3 |
+
short_description: "Sharpen a plan through interview"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/grill-with-docs/SKILL.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: grill-with-docs
|
| 3 |
+
description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
Run a `/grilling` session, using the `/domain-modeling` skill.
|
.agents/skills/grill-with-docs/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Grill with Docs"
|
| 3 |
+
short_description: "Grill a design and write its docs"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/grilling/SKILL.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: grilling
|
| 3 |
+
description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
Interview me relentlessly about every aspect of this until we reach a shared understanding. Walk down each branch of the decision tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
|
| 7 |
+
|
| 8 |
+
Ask the questions one at a time, waiting for feedback on each question before continuing. Asking multiple questions at once is bewildering.
|
| 9 |
+
|
| 10 |
+
If a *fact* can be found by exploring the environment (filesystem, tools, etc.), look it up rather than asking me. The *decisions*, though, are mine — put each one to me and wait for my answer.
|
| 11 |
+
|
| 12 |
+
Do not act on it until I confirm we have reached a shared understanding.
|
.agents/skills/grilling/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Grilling"
|
| 3 |
+
short_description: "Stress-test thinking one question at a time"
|
.agents/skills/handoff/SKILL.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: handoff
|
| 3 |
+
description: Compact the current conversation into a handoff document for another agent to pick up.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS - not the current workspace.
|
| 7 |
+
|
| 8 |
+
Include a "suggested skills" section in the document, which suggests skills that the agent should invoke.
|
| 9 |
+
|
| 10 |
+
Do not duplicate content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
|
| 11 |
+
|
| 12 |
+
Redact any sensitive information, such as API keys, passwords, or personally identifiable information.
|
| 13 |
+
|
| 14 |
+
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
|
.agents/skills/handoff/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Handoff"
|
| 3 |
+
short_description: "Compact a conversation into a handoff"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/implement/SKILL.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: implement
|
| 3 |
+
description: Implement work from a spec, ticket, or agreed conversation. Use explicitly when the user wants an existing plan carried through to working code.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Implement planned work
|
| 7 |
+
|
| 8 |
+
Confirm the intended outcome and inspect the relevant code, tests, and
|
| 9 |
+
repository conventions. Resolve ambiguity only when it would materially change
|
| 10 |
+
the result; otherwise make a reasonable scoped assumption and proceed.
|
| 11 |
+
|
| 12 |
+
Implement the smallest coherent change that satisfies the source requirements.
|
| 13 |
+
Use test-first development when requested or when a focused failing test is the
|
| 14 |
+
clearest feedback loop. Avoid speculative abstractions and unrelated cleanup.
|
| 15 |
+
|
| 16 |
+
Validate the changed surface proportionally: start with focused evidence and
|
| 17 |
+
expand to broader checks when risk or repository contracts justify it. Use a
|
| 18 |
+
separate review when semantic risk remains or the user requests one.
|
| 19 |
+
|
| 20 |
+
Report what changed, what was verified, and any remaining uncertainty. Commit,
|
| 21 |
+
publish, or mutate tracker state only when requested or clearly included in the
|
| 22 |
+
active workflow.
|
.agents/skills/implement/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Implement"
|
| 3 |
+
short_description: "Build work from a spec or tickets"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/improve-codebase-architecture/HTML-REPORT.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Architecture report guide
|
| 2 |
+
|
| 3 |
+
Use a visual report when relationships, before/after structure, or several
|
| 4 |
+
candidates would be harder to compare in prose. Follow the user's requested
|
| 5 |
+
destination and the environment's artifact conventions.
|
| 6 |
+
|
| 7 |
+
## Suggested structure
|
| 8 |
+
|
| 9 |
+
- Repository or subsystem and the scope inspected.
|
| 10 |
+
- Candidate cards with evidence and affected modules.
|
| 11 |
+
- A recommendation strength such as `Strong`, `Worth exploring`, or
|
| 12 |
+
`Speculative`.
|
| 13 |
+
- One top recommendation with its main tradeoff.
|
| 14 |
+
- Limits: relevant areas or evidence not inspected.
|
| 15 |
+
|
| 16 |
+
Each candidate can include:
|
| 17 |
+
|
| 18 |
+
- **Observed friction:** what is difficult today.
|
| 19 |
+
- **Proposed deepening:** which responsibility moves behind which interface.
|
| 20 |
+
- **Evidence:** concrete call paths, change patterns, tests, or dependencies.
|
| 21 |
+
- **Benefits:** expected locality, leverage, or test improvement.
|
| 22 |
+
- **Costs:** migration work, compatibility risk, or added indirection.
|
| 23 |
+
- **Decision conflicts:** ADRs or constraints that would need reconsideration.
|
| 24 |
+
|
| 25 |
+
## Visual choices
|
| 26 |
+
|
| 27 |
+
Choose the smallest visual that makes the relationship clearer:
|
| 28 |
+
|
| 29 |
+
- A dependency or call-flow graph for tangled relationships.
|
| 30 |
+
- A sequence diagram for excess round trips.
|
| 31 |
+
- A layered cross-section for shallow pass-through modules.
|
| 32 |
+
- Interface-versus-implementation mass for module depth.
|
| 33 |
+
- A before/after call-graph collapse for consolidation.
|
| 34 |
+
|
| 35 |
+
Mermaid is useful for graph-shaped relationships. HTML/CSS or SVG may be better
|
| 36 |
+
for editorial comparisons. Prefer self-contained output; use external CDNs only
|
| 37 |
+
when the environment permits them.
|
| 38 |
+
|
| 39 |
+
Keep labels close to the repository's domain and architecture language, but
|
| 40 |
+
favor clarity over enforcing a special vocabulary. Diagrams should carry useful
|
| 41 |
+
evidence rather than decorate the report.
|
.agents/skills/improve-codebase-architecture/SKILL.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: improve-codebase-architecture
|
| 3 |
+
description: Analyze a codebase for high-leverage architectural improvements and explain evidence, tradeoffs, and next steps. Use explicitly for architecture audits or deep-module refactoring opportunities.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Improve Codebase Architecture
|
| 7 |
+
|
| 8 |
+
Look for architectural friction that a focused structural change could reduce.
|
| 9 |
+
Favor improvements that shrink interfaces, concentrate related complexity, and
|
| 10 |
+
make important behavior easier to test and understand.
|
| 11 |
+
|
| 12 |
+
## Scope the investigation
|
| 13 |
+
|
| 14 |
+
Follow the user's named subsystem or pain point. Otherwise use recent changes,
|
| 15 |
+
repeated maintenance friction, test difficulty, or dependency structure to
|
| 16 |
+
select a useful area. Read relevant domain language and ADRs when present so
|
| 17 |
+
recommendations respect intentional boundaries.
|
| 18 |
+
|
| 19 |
+
Use the `codebase-design` skill when its deep-module vocabulary will sharpen the
|
| 20 |
+
analysis. Explore independently in parallel only when the repository is large
|
| 21 |
+
enough to benefit and the lanes do not duplicate work.
|
| 22 |
+
|
| 23 |
+
## Find evidence
|
| 24 |
+
|
| 25 |
+
Consider:
|
| 26 |
+
|
| 27 |
+
- interfaces that expose nearly as much complexity as their implementations;
|
| 28 |
+
- behavior spread across modules that change together;
|
| 29 |
+
- dependency seams that leak internal details;
|
| 30 |
+
- testing that bypasses the real call path because no stable seam exists; and
|
| 31 |
+
- repeated wrappers or indirection that add little leverage.
|
| 32 |
+
|
| 33 |
+
Treat these as prompts for investigation, not violations. Apply the deletion
|
| 34 |
+
test where useful: would removing a layer concentrate complexity behind a
|
| 35 |
+
better interface, or merely move it elsewhere?
|
| 36 |
+
|
| 37 |
+
## Present candidates
|
| 38 |
+
|
| 39 |
+
For each material candidate, cite the affected code and explain:
|
| 40 |
+
|
| 41 |
+
- the observed friction;
|
| 42 |
+
- the structural change being considered;
|
| 43 |
+
- expected benefits and tradeoffs;
|
| 44 |
+
- evidence that the seam is real rather than hypothetical;
|
| 45 |
+
- test impact and migration risk; and
|
| 46 |
+
- conflicts with existing decisions.
|
| 47 |
+
|
| 48 |
+
Rank recommendations by evidence and likely leverage. Keep speculative ideas
|
| 49 |
+
clearly labeled and avoid proposing a wide refactor solely for aesthetic
|
| 50 |
+
consistency.
|
| 51 |
+
|
| 52 |
+
Use prose, a compact table, or diagrams according to what best communicates the
|
| 53 |
+
relationships. When a visual HTML artifact is useful and authorized, load the
|
| 54 |
+
[HTML report guide](HTML-REPORT.md).
|
| 55 |
+
|
| 56 |
+
Explore a selected candidate further only when the user requests it or the
|
| 57 |
+
current task includes design. Update domain records or ADRs only when those
|
| 58 |
+
artifacts are in scope and the decision is durable enough to justify them.
|
.agents/skills/improve-codebase-architecture/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Improve Codebase Architecture"
|
| 3 |
+
short_description: "Find high-leverage architecture improvements"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/prototype/LOGIC.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Logic Prototype
|
| 2 |
+
|
| 3 |
+
A logic prototype makes business rules, state transitions, or data-shape
|
| 4 |
+
trade-offs concrete enough to exercise.
|
| 5 |
+
|
| 6 |
+
## Workflow
|
| 7 |
+
|
| 8 |
+
1. Write down the question and what evidence would answer it.
|
| 9 |
+
2. Choose the cheapest useful interaction:
|
| 10 |
+
- a small terminal UI for exploratory state transitions;
|
| 11 |
+
- a script or table of cases for deterministic rules;
|
| 12 |
+
- a focused test harness for invariants or regression behavior;
|
| 13 |
+
- a notebook or REPL when rapid data-shape exploration matters.
|
| 14 |
+
3. Use the project's existing runtime and tooling where practical.
|
| 15 |
+
4. Keep the logic separate from the harness when that separation helps compare
|
| 16 |
+
designs or reuse the result. Do not turn a disposable experiment into a
|
| 17 |
+
premature production abstraction.
|
| 18 |
+
5. Exercise representative normal, edge, and invalid cases. Surface the state,
|
| 19 |
+
transition, output, or error that answers the question.
|
| 20 |
+
6. Give the user the run command and summarize what the prototype demonstrated.
|
| 21 |
+
|
| 22 |
+
## Interactive terminal shape
|
| 23 |
+
|
| 24 |
+
When manual state exploration is the useful feedback loop, build a lightweight
|
| 25 |
+
terminal interface:
|
| 26 |
+
|
| 27 |
+
- Show the current relevant state and available actions.
|
| 28 |
+
- Accept one action at a time and render the resulting state.
|
| 29 |
+
- Keep the frame compact and make invalid transitions visible.
|
| 30 |
+
- Use native terminal capabilities or dependencies already present in the
|
| 31 |
+
project before adding a UI library.
|
| 32 |
+
|
| 33 |
+
## Guardrails
|
| 34 |
+
|
| 35 |
+
- Avoid real production mutations unless they are essential to the question and
|
| 36 |
+
safely isolated.
|
| 37 |
+
- Avoid speculative generalization.
|
| 38 |
+
- Keep harness concerns from obscuring the logic under evaluation.
|
| 39 |
+
- Treat prototype code as evidence, not production-ready implementation.
|
.agents/skills/prototype/SKILL.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: prototype
|
| 3 |
+
description: Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Prototype
|
| 7 |
+
|
| 8 |
+
A prototype is disposable code that answers a specific design question. Let the
|
| 9 |
+
question, repository, and cheapest credible feedback loop determine its shape.
|
| 10 |
+
|
| 11 |
+
## Pick a branch
|
| 12 |
+
|
| 13 |
+
Infer the branch from the request and surrounding code:
|
| 14 |
+
|
| 15 |
+
- **Logic or state-model uncertainty** → read [LOGIC.md](LOGIC.md).
|
| 16 |
+
- **Visual or interaction uncertainty** → read [UI.md](UI.md).
|
| 17 |
+
|
| 18 |
+
If both are involved, prototype the riskiest uncertainty first. State a material
|
| 19 |
+
assumption instead of blocking when the choice can be reversed cheaply.
|
| 20 |
+
|
| 21 |
+
## Shared guidance
|
| 22 |
+
|
| 23 |
+
- Mark the artifact clearly as a prototype and follow existing project structure.
|
| 24 |
+
- Keep it runnable with a simple documented command or URL.
|
| 25 |
+
- Prefer in-memory or stubbed dependencies unless persistence or integration is
|
| 26 |
+
the question being tested.
|
| 27 |
+
- Add only the error handling, tests, and structure needed for trustworthy
|
| 28 |
+
feedback. Avoid production polish and speculative flexibility.
|
| 29 |
+
- Make the relevant state, alternatives, or outcomes easy to inspect.
|
| 30 |
+
- Stop when the evidence answers the question.
|
| 31 |
+
|
| 32 |
+
Report the answer, how to exercise the prototype, and its limitations. Do not
|
| 33 |
+
promote, commit, branch, publish, or preserve the artifact unless the user asks.
|
| 34 |
+
When preservation is useful, record the question and conclusion alongside it.
|
.agents/skills/prototype/UI.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UI Prototype
|
| 2 |
+
|
| 3 |
+
A UI prototype compares visual or interaction ideas with enough surrounding
|
| 4 |
+
context to make the trade-offs visible.
|
| 5 |
+
|
| 6 |
+
## Workflow
|
| 7 |
+
|
| 8 |
+
1. State the design question and the constraints every option must satisfy.
|
| 9 |
+
2. Choose a comparison surface:
|
| 10 |
+
- embed variants in an existing page when its real data and density are
|
| 11 |
+
important and the change is safely isolated;
|
| 12 |
+
- use a clearly marked prototype route or local artifact when isolation is
|
| 13 |
+
more valuable.
|
| 14 |
+
3. Produce enough structurally different variants to expose the decision,
|
| 15 |
+
usually two or three. Vary hierarchy, layout, and primary affordance rather
|
| 16 |
+
than only color or copy.
|
| 17 |
+
4. Reuse the project's component library, styles, and representative data.
|
| 18 |
+
5. Make comparison easy. A URL parameter and small variant switcher are useful
|
| 19 |
+
for an in-app prototype; separate local pages or screenshots may be cheaper
|
| 20 |
+
for a narrower question.
|
| 21 |
+
6. Run the prototype in its actual rendering environment and inspect the
|
| 22 |
+
relevant viewport sizes and interactions.
|
| 23 |
+
7. Give the user the URL or command, label the variants, and summarize the
|
| 24 |
+
trade-offs without choosing for them unless they requested a recommendation.
|
| 25 |
+
|
| 26 |
+
## Optional in-app switcher
|
| 27 |
+
|
| 28 |
+
When persistent, side-by-side browser evaluation is useful:
|
| 29 |
+
|
| 30 |
+
- Select variants through a shareable URL parameter.
|
| 31 |
+
- Provide compact previous/next controls and a clear variant label.
|
| 32 |
+
- Preserve existing data fetching outside the variant-specific rendering.
|
| 33 |
+
- Avoid intercepting keyboard shortcuts while an input is focused.
|
| 34 |
+
- Keep prototype controls out of production builds.
|
| 35 |
+
|
| 36 |
+
## Guardrails
|
| 37 |
+
|
| 38 |
+
- Do not let shared prototype code force variants into the same structure.
|
| 39 |
+
- Stub destructive mutations unless the interaction with the real backend is the
|
| 40 |
+
question under test and can be exercised safely.
|
| 41 |
+
- Treat a selected variant as design evidence, not automatically as
|
| 42 |
+
production-ready code.
|
| 43 |
+
- Remove or preserve prototype machinery only when the user asks for that next
|
| 44 |
+
step.
|
.agents/skills/prototype/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Prototype"
|
| 3 |
+
short_description: "Prototype to answer a design question"
|
.agents/skills/research/SKILL.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: research
|
| 3 |
+
description: Investigate questions using high-trust primary sources and traceable citations. Use when the user asks for research, current documentation or API facts, source verification, or evidence-backed comparison.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Research
|
| 7 |
+
|
| 8 |
+
Clarify the decision or question the research must support. Prefer official
|
| 9 |
+
documentation, source code, specifications, papers, and first-party APIs.
|
| 10 |
+
Trace material claims to the source that owns them, distinguish source facts
|
| 11 |
+
from inference, and account for publication and event dates when recency
|
| 12 |
+
matters.
|
| 13 |
+
|
| 14 |
+
Use parallel research lanes only when the question has independent source areas
|
| 15 |
+
and the coordination cost is worthwhile. Keep narrow lookups local.
|
| 16 |
+
|
| 17 |
+
Return findings in the form the user requested, with citations close to the
|
| 18 |
+
claims they support. Create a repository artifact only when requested or when
|
| 19 |
+
it clearly serves the task and is within the authorized scope.
|
.agents/skills/research/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Research"
|
| 3 |
+
short_description: "Research from high-trust sources"
|
.agents/skills/resolving-merge-conflicts/SKILL.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: resolving-merge-conflicts
|
| 3 |
+
description: Resolve an in-progress Git merge or rebase conflict while preserving the relevant intent of both sides. Use when conflict markers or an interrupted merge/rebase need investigation and resolution.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Resolve Merge Conflicts
|
| 7 |
+
|
| 8 |
+
1. Inspect the current Git state, the operation in progress, its goal, and every
|
| 9 |
+
conflicting file.
|
| 10 |
+
2. Reconstruct each side's intent from the code, nearby tests, history, commit
|
| 11 |
+
messages, and linked work items that are available and useful.
|
| 12 |
+
3. Resolve each hunk by preserving compatible intent. Where intents conflict,
|
| 13 |
+
prefer the merge's stated goal and current repository contracts; avoid
|
| 14 |
+
inventing unrelated behavior.
|
| 15 |
+
4. Run focused checks for the affected surface, then broader checks when risk or
|
| 16 |
+
repository guidance warrants them.
|
| 17 |
+
5. Unless the user requested advice or review only, stage resolved files and
|
| 18 |
+
continue the current merge or rebase when it is safe to do so. Report what was
|
| 19 |
+
resolved, what was verified, and any remaining uncertainty.
|
| 20 |
+
|
| 21 |
+
Pause rather than guess when neither intent can be preserved safely. Aborting or
|
| 22 |
+
restarting can be the correct recovery when the base is wrong, the operation is
|
| 23 |
+
contaminated, or the user prefers a clean retry; explain the trade-off before
|
| 24 |
+
taking that destructive step.
|
.agents/skills/resolving-merge-conflicts/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Resolving Merge Conflicts"
|
| 3 |
+
short_description: "Resolve merge and rebase conflicts"
|
.agents/skills/setup-matt-pocock-skills/SKILL.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: setup-matt-pocock-skills
|
| 3 |
+
description: Configure repository-local tracker, triage, and domain-document conventions needed by the Matt Pocock engineering skills.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Configure the repository
|
| 7 |
+
|
| 8 |
+
1. Inspect existing tracker conventions, remotes, domain documents, ADRs, and
|
| 9 |
+
skill configuration. Reuse established structure.
|
| 10 |
+
2. Determine which configuration the installed workflows actually need:
|
| 11 |
+
issue-tracker guidance, triage labels, domain-document guidance, or a subset.
|
| 12 |
+
3. Infer unambiguous choices from the repository. Ask only about choices that
|
| 13 |
+
materially change behavior, and present a recommendation with the tradeoff.
|
| 14 |
+
4. Show the proposed repository-local files before writing when the choice is
|
| 15 |
+
material or the files already contain user decisions.
|
| 16 |
+
5. Write the smallest idempotent configuration that satisfies the selected
|
| 17 |
+
workflows. Do not add skill inventories or workflow prose to `AGENTS.md` or
|
| 18 |
+
`CLAUDE.md`; keep those files lightweight and point workflows at dedicated
|
| 19 |
+
configuration instead.
|
| 20 |
+
6. Report what was configured and what remains intentionally unconfigured.
|
| 21 |
+
|
| 22 |
+
Use the existing seed files only for the selected branch:
|
| 23 |
+
|
| 24 |
+
- GitHub: [issue-tracker-github.md](issue-tracker-github.md)
|
| 25 |
+
- GitLab: [issue-tracker-gitlab.md](issue-tracker-gitlab.md)
|
| 26 |
+
- Local Markdown: [issue-tracker-local.md](issue-tracker-local.md)
|
| 27 |
+
- Triage labels: [triage-labels.md](triage-labels.md)
|
| 28 |
+
- Domain documents: [domain.md](domain.md)
|
| 29 |
+
|
| 30 |
+
Adapt templates to the repository; they are references, not required output
|
| 31 |
+
shapes.
|
.agents/skills/setup-matt-pocock-skills/agents/openai.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Setup Matt Pocock Skills"
|
| 3 |
+
short_description: "Configure a repo for the skills"
|
| 4 |
+
policy:
|
| 5 |
+
allow_implicit_invocation: false
|
.agents/skills/setup-matt-pocock-skills/domain.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Domain Docs
|
| 2 |
+
|
| 3 |
+
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
|
| 4 |
+
|
| 5 |
+
## Before exploring, read these
|
| 6 |
+
|
| 7 |
+
- **`CONTEXT.md`** at the repo root, or
|
| 8 |
+
- **`CONTEXT-MAP.md`** at the repo root if it exists — it points at one `CONTEXT.md` per context. Read each one relevant to the topic.
|
| 9 |
+
- **`docs/adr/`** — read ADRs that touch the area you're about to work in. In multi-context repos, also check `src/<context>/docs/adr/` for context-scoped decisions.
|
| 10 |
+
|
| 11 |
+
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
|
| 12 |
+
|
| 13 |
+
## File structure
|
| 14 |
+
|
| 15 |
+
Single-context repo (most repos):
|
| 16 |
+
|
| 17 |
+
```
|
| 18 |
+
/
|
| 19 |
+
├── CONTEXT.md
|
| 20 |
+
├── docs/adr/
|
| 21 |
+
│ ├── 0001-event-sourced-orders.md
|
| 22 |
+
│ └── 0002-postgres-for-write-model.md
|
| 23 |
+
└── src/
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
Multi-context repo (presence of `CONTEXT-MAP.md` at the root):
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
/
|
| 30 |
+
├── CONTEXT-MAP.md
|
| 31 |
+
├── docs/adr/ ← system-wide decisions
|
| 32 |
+
└── src/
|
| 33 |
+
├── ordering/
|
| 34 |
+
│ ├── CONTEXT.md
|
| 35 |
+
│ └── docs/adr/ ← context-specific decisions
|
| 36 |
+
└── billing/
|
| 37 |
+
├── CONTEXT.md
|
| 38 |
+
└── docs/adr/
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## Use the glossary's vocabulary
|
| 42 |
+
|
| 43 |
+
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `CONTEXT.md`. Don't drift to synonyms the glossary explicitly avoids.
|
| 44 |
+
|
| 45 |
+
If the concept you need isn't in the glossary yet, that's a signal — either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
|
| 46 |
+
|
| 47 |
+
## Flag ADR conflicts
|
| 48 |
+
|
| 49 |
+
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
|
| 50 |
+
|
| 51 |
+
> _Contradicts ADR-0007 (event-sourced orders) — but worth reopening because…_
|
.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue tracker: GitHub
|
| 2 |
+
|
| 3 |
+
Issues and PRDs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
|
| 4 |
+
|
| 5 |
+
## Conventions
|
| 6 |
+
|
| 7 |
+
- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
|
| 8 |
+
- **Read an issue**: `gh issue view <number> --comments`, filtering comments by `jq` and also fetching labels.
|
| 9 |
+
- **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.
|
| 10 |
+
- **Comment on an issue**: `gh issue comment <number> --body "..."`
|
| 11 |
+
- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
|
| 12 |
+
- **Close**: `gh issue close <number> --comment "..."`
|
| 13 |
+
|
| 14 |
+
Infer the repo from `git remote -v` — `gh` does this automatically when run inside a clone.
|
| 15 |
+
|
| 16 |
+
## Pull requests as a triage surface
|
| 17 |
+
|
| 18 |
+
**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_
|
| 19 |
+
|
| 20 |
+
When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:
|
| 21 |
+
|
| 22 |
+
- **Read a PR**: `gh pr view <number> --comments` and `gh pr diff <number>` for the diff.
|
| 23 |
+
- **List external PRs for triage**: `gh pr list --state open --json number,title,body,labels,author,authorAssociation,comments` then keep only `authorAssociation` of `CONTRIBUTOR`, `FIRST_TIME_CONTRIBUTOR`, or `NONE` (drop `OWNER`/`MEMBER`/`COLLABORATOR`).
|
| 24 |
+
- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.
|
| 25 |
+
|
| 26 |
+
GitHub shares one number space across issues and PRs, so a bare `#42` may be either — resolve with `gh pr view 42` and fall back to `gh issue view 42`.
|
| 27 |
+
|
| 28 |
+
## When a skill says "publish to the issue tracker"
|
| 29 |
+
|
| 30 |
+
Create a GitHub issue.
|
| 31 |
+
|
| 32 |
+
## When a skill says "fetch the relevant ticket"
|
| 33 |
+
|
| 34 |
+
Run `gh issue view <number> --comments`.
|
| 35 |
+
|
| 36 |
+
## Wayfinding operations
|
| 37 |
+
|
| 38 |
+
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
|
| 39 |
+
|
| 40 |
+
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `gh issue create --label wayfinder:map`.
|
| 41 |
+
- **Child ticket**: an issue linked to the map as a GitHub sub-issue (`gh api` on the sub-issues endpoint). Where sub-issues aren't enabled, add the child to a task list in the map body and put `Part of #<map>` at the top of the child body. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
| 42 |
+
- **Blocking**: GitHub's **native issue dependencies** — the canonical, UI-visible representation. Add an edge with `gh api --method POST repos/<owner>/<repo>/issues/<child>/dependencies/blocked_by -F issue_id=<blocker-db-id>`, where `<blocker-db-id>` is the blocker's numeric **database id** (`gh api repos/<owner>/<repo>/issues/<n> --jq .id`, _not_ the `#number` or `node_id`). GitHub reports `issue_dependencies_summary.blocked_by` (open blockers only — the live gate). Where dependencies aren't available, fall back to a `Blocked by: #<n>, #<n>` line at the top of the child body. A ticket is unblocked when every blocker is closed.
|
| 43 |
+
- **Frontier query**: list the map's open children (`gh issue list --state open`, scoped to the map's sub-issues / task list), drop any with an open blocker (`issue_dependencies_summary.blocked_by > 0`, or an open issue in the `Blocked by` line) or an assignee; first in map order wins.
|
| 44 |
+
- **Claim**: `gh issue edit <n> --add-assignee @me` — the session's first write.
|
| 45 |
+
- **Resolve**: `gh issue comment <n> --body "<answer>"`, then `gh issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
|
.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue tracker: GitLab
|
| 2 |
+
|
| 3 |
+
Issues and PRDs for this repo live as GitLab issues. Use the [`glab`](https://gitlab.com/gitlab-org/cli) CLI for all operations.
|
| 4 |
+
|
| 5 |
+
## Conventions
|
| 6 |
+
|
| 7 |
+
- **Create an issue**: `glab issue create --title "..." --description "..."`. Use a heredoc for multi-line descriptions. Pass `--description -` to open an editor.
|
| 8 |
+
- **Read an issue**: `glab issue view <number> --comments`. Use `-F json` for machine-readable output.
|
| 9 |
+
- **List issues**: `glab issue list -F json` with appropriate `--label` filters.
|
| 10 |
+
- **Comment on an issue**: `glab issue note <number> --message "..."`. GitLab calls comments "notes".
|
| 11 |
+
- **Apply / remove labels**: `glab issue update <number> --label "..."` / `--unlabel "..."`. Multiple labels can be comma-separated or by repeating the flag.
|
| 12 |
+
- **Close**: `glab issue close <number>`. `glab issue close` does not accept a closing comment, so post the explanation first with `glab issue note <number> --message "..."`, then close.
|
| 13 |
+
- **Merge requests**: GitLab calls PRs "merge requests". Use `glab mr create`, `glab mr view`, `glab mr note`, etc. — the same shape as `gh pr ...` with `mr` in place of `pr` and `note`/`--message` in place of `comment`/`--body`.
|
| 14 |
+
|
| 15 |
+
Infer the repo from `git remote -v` — `glab` does this automatically when run inside a clone.
|
| 16 |
+
|
| 17 |
+
## Merge requests as a triage surface
|
| 18 |
+
|
| 19 |
+
**MRs as a request surface: no.** _(Set to `yes` if this repo treats external merge requests as feature requests; `/triage` reads this flag.)_
|
| 20 |
+
|
| 21 |
+
When set to `yes`, MRs run through the same labels and states as issues, using the `glab mr` equivalents:
|
| 22 |
+
|
| 23 |
+
- **Read an MR**: `glab mr view <number> --comments` and `glab mr diff <number>` for the diff.
|
| 24 |
+
- **List external MRs for triage**: `glab mr list -F json`, then keep only MRs whose author is not a project member/owner (a contributor's MR, not a maintainer's in-flight work).
|
| 25 |
+
- **Comment / label / close**: `glab mr note`, `glab mr update --label`/`--unlabel`, `glab mr close`.
|
| 26 |
+
|
| 27 |
+
Unlike GitHub, GitLab numbers issues and MRs separately, so `#42` is unambiguous once you know which surface the maintainer means.
|
| 28 |
+
|
| 29 |
+
## When a skill says "publish to the issue tracker"
|
| 30 |
+
|
| 31 |
+
Create a GitLab issue.
|
| 32 |
+
|
| 33 |
+
## When a skill says "fetch the relevant ticket"
|
| 34 |
+
|
| 35 |
+
Run `glab issue view <number> --comments`.
|
| 36 |
+
|
| 37 |
+
## Wayfinding operations
|
| 38 |
+
|
| 39 |
+
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
|
| 40 |
+
|
| 41 |
+
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `glab issue create --label wayfinder:map`. (On GitLab tiers with native epics, an epic may hold the map instead; a labelled issue works everywhere.)
|
| 42 |
+
- **Child ticket**: an issue carrying `Part of #<map>` at the top of its description and labels `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
| 43 |
+
- **Blocking**: GitLab's **native blocking link** — the canonical, UI-visible representation. Add it with the `/blocked_by #<n>` quick action, posted as a note (`glab issue note <child> --message "/blocked_by #<blocker>"`). Native blocking links are a Premium/Ultimate feature; on the free tier (or where unavailable) fall back to a `Blocked by: #<n>, #<n>` line at the top of the description. A ticket is unblocked when every blocker is closed.
|
| 44 |
+
- **Frontier query**: `glab issue list -F json` scoped to the map's children, drop any with an open blocker — a native `blocked_by` link to an open issue (`glab api projects/:id/issues/:iid/links`), or an open issue in the `Blocked by` line — or an assignee; first in map order wins.
|
| 45 |
+
- **Claim**: `glab issue update <n> --assignee @me` — the session's first write.
|
| 46 |
+
- **Resolve**: `glab issue note <n> --message "<answer>"`, then `glab issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
|
.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue tracker: Local Markdown
|
| 2 |
+
|
| 3 |
+
Issues and specs (you may know a spec as a PRD) for this repo live as markdown files in `.scratch/`.
|
| 4 |
+
|
| 5 |
+
## Conventions
|
| 6 |
+
|
| 7 |
+
- One feature per directory: `.scratch/<feature-slug>/`
|
| 8 |
+
- The spec is `.scratch/<feature-slug>/spec.md`
|
| 9 |
+
- Implementation issues are one file per ticket at `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01` — never a single combined tickets file
|
| 10 |
+
- Triage state is recorded as a `Status:` line near the top of each issue file (see `triage-labels.md` for the role strings)
|
| 11 |
+
- Comments and conversation history append to the bottom of the file under a `## Comments` heading
|
| 12 |
+
|
| 13 |
+
## When a skill says "publish to the issue tracker"
|
| 14 |
+
|
| 15 |
+
Create a new file under `.scratch/<feature-slug>/` (creating the directory if needed).
|
| 16 |
+
|
| 17 |
+
## When a skill says "fetch the relevant ticket"
|
| 18 |
+
|
| 19 |
+
Read the file at the referenced path. The user will normally pass the path or the issue number directly.
|
| 20 |
+
|
| 21 |
+
## Wayfinding operations
|
| 22 |
+
|
| 23 |
+
Used by `/wayfinder`. The **map** is a file with one **child** file per ticket.
|
| 24 |
+
|
| 25 |
+
- **Map**: `.scratch/<effort>/map.md` — the Notes / Decisions-so-far / Fog body.
|
| 26 |
+
- **Child ticket**: `.scratch/<effort>/issues/NN-<slug>.md`, numbered from `01`, with the question in the body. A `Type:` line records the ticket type (`research`/`prototype`/`grilling`/`task`); a `Status:` line records `claimed`/`resolved`.
|
| 27 |
+
- **Blocking**: a `Blocked by: NN, NN` line near the top. A ticket is unblocked when every file it lists is `resolved`.
|
| 28 |
+
- **Frontier**: scan `.scratch/<effort>/issues/` for files that are open, unblocked, and unclaimed; first by number wins.
|
| 29 |
+
- **Claim**: set `Status: claimed` and save before any work.
|
| 30 |
+
- **Resolve**: append the answer under an `## Answer` heading, set `Status: resolved`, then append a context pointer (gist + link) to the map's Decisions-so-far in `map.md`.
|
.agents/skills/setup-matt-pocock-skills/triage-labels.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Triage Labels
|
| 2 |
+
|
| 3 |
+
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
|
| 4 |
+
|
| 5 |
+
| Label in mattpocock/skills | Label in our tracker | Meaning |
|
| 6 |
+
| -------------------------- | -------------------- | ---------------------------------------- |
|
| 7 |
+
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
|
| 8 |
+
| `needs-info` | `needs-info` | Waiting on reporter for more information |
|
| 9 |
+
| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
|
| 10 |
+
| `ready-for-human` | `ready-for-human` | Requires human implementation |
|
| 11 |
+
| `wontfix` | `wontfix` | Will not be actioned |
|
| 12 |
+
|
| 13 |
+
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
|
| 14 |
+
|
| 15 |
+
Edit the right-hand column to match whatever vocabulary you actually use.
|
.agents/skills/tdd/SKILL.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: tdd
|
| 3 |
+
description: Apply test-driven development with small, behavior-focused feedback loops. Use when the user asks to build or fix something test-first, mentions red-green-refactor, or wants integration tests.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Test-Driven Development
|
| 7 |
+
|
| 8 |
+
Use small red → green → refactor cycles when a test-first feedback loop is
|
| 9 |
+
practical. Treat repository conventions, existing tests, and the requested
|
| 10 |
+
behavior as authoritative.
|
| 11 |
+
|
| 12 |
+
## Loop
|
| 13 |
+
|
| 14 |
+
1. Identify one observable behavior and the seam through which callers see it.
|
| 15 |
+
2. Write the smallest meaningful test and confirm that it fails for the expected
|
| 16 |
+
reason.
|
| 17 |
+
3. Add only enough implementation to make the test pass.
|
| 18 |
+
4. Refactor when doing so improves clarity or design; keep the suite green.
|
| 19 |
+
5. Repeat with the next vertical slice.
|
| 20 |
+
|
| 21 |
+
Infer seams from public interfaces and nearby tests. Ask the user only when
|
| 22 |
+
choosing a seam would materially change the product contract, cost, or scope.
|
| 23 |
+
|
| 24 |
+
## Judgment
|
| 25 |
+
|
| 26 |
+
- Prefer behavior-focused tests that survive internal refactors.
|
| 27 |
+
- Derive expected results from a specification, worked example, or other
|
| 28 |
+
independent source rather than duplicating the implementation.
|
| 29 |
+
- Mock external or nondeterministic boundaries when useful; follow established
|
| 30 |
+
repository patterns where they provide an adequate feedback loop.
|
| 31 |
+
- Prefer vertical slices over a speculative batch of tests. Batch closely
|
| 32 |
+
related mechanical cases when that is clearer and faster.
|
| 33 |
+
- If a failing-first cycle is impractical—for example in legacy code with no
|
| 34 |
+
usable seam—state the limitation and establish the nearest reliable
|
| 35 |
+
characterization or integration test.
|
| 36 |
+
|
| 37 |
+
Read [tests.md](tests.md) for examples and [mocking.md](mocking.md) when deciding
|
| 38 |
+
whether and where to use test doubles.
|
.agents/skills/tdd/agents/openai.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "TDD"
|
| 3 |
+
short_description: "Test-driven red-green-refactor"
|