agent-concepts 0.0.0-stage → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +773 -2
- package/concepts/bc-brainstorming/body/SKILL.md +43 -0
- package/concepts/bc-code-review/body/SKILL.md +120 -0
- package/concepts/bc-codebase-design/body/SKILL.md +54 -0
- package/concepts/bc-codebase-docs/body/SKILL.md +150 -0
- package/concepts/bc-council-audit-security/body/SKILL.md +72 -0
- package/concepts/bc-council-chain/body/SKILL.md +71 -0
- package/concepts/bc-council-challenge-plan/body/SKILL.md +78 -0
- package/concepts/bc-council-find-bugs/body/SKILL.md +70 -0
- package/concepts/bc-council-improve-architecture/body/SKILL.md +52 -0
- package/concepts/bc-council-mode/body/SKILL.md +56 -0
- package/concepts/bc-council-mode/body/examples/agents/README.md +11 -0
- package/concepts/bc-council-mode/body/examples/agents/council-change.md +14 -0
- package/concepts/bc-council-mode/body/examples/agents/council-compat.md +14 -0
- package/concepts/bc-council-mode/body/examples/agents/council-risk.md +14 -0
- package/concepts/bc-council-mode/body/references/pass-contracts.md +133 -0
- package/concepts/bc-delegate-investigation/body/SKILL.md +119 -0
- package/concepts/bc-delegate-investigation/body/examples/pi-settings-snippet.json +8 -0
- package/concepts/bc-delegate-investigation/body/pi.md +170 -0
- package/concepts/bc-design/body/SKILL.md +49 -0
- package/concepts/bc-design/body/design-framework.md +39 -0
- package/concepts/bc-design/body/existing-app.md +9 -0
- package/concepts/bc-design/body/new-work.md +22 -0
- package/concepts/bc-design/body/principles.md +34 -0
- package/concepts/bc-design/body/surfaces.md +13 -0
- package/concepts/bc-diagnosing-bugs/body/SKILL.md +83 -0
- package/concepts/bc-dispatching-parallel-agents/body/SKILL.md +63 -0
- package/concepts/bc-domain-modeling/body/SKILL.md +40 -0
- package/concepts/bc-executing-plans/body/SKILL.md +50 -0
- package/concepts/bc-explain-visually/body/SKILL.md +167 -0
- package/concepts/bc-find-bugs/body/SKILL.md +90 -0
- package/concepts/bc-finishing-development-branch/body/SKILL.md +73 -0
- package/concepts/bc-grilling/body/SKILL.md +22 -0
- package/concepts/bc-handoff/body/SKILL.md +104 -0
- package/concepts/bc-handoff/body/pickup.md +107 -0
- package/concepts/bc-handoff/body/writing.md +217 -0
- package/concepts/bc-improve-codebase-architecture/body/SKILL.md +101 -0
- package/concepts/bc-json-canvas/body/SKILL.md +40 -0
- package/concepts/bc-json-canvas/body/references/EXAMPLES.md +71 -0
- package/concepts/bc-json-canvas/body/references/SPEC.md +55 -0
- package/concepts/bc-json-canvas/body/references/VALIDATION.md +26 -0
- package/concepts/bc-minimal-solution-ladder/body/SKILL.md +120 -0
- package/concepts/bc-obsidian-bases/body/SKILL.md +59 -0
- package/concepts/bc-obsidian-bases/body/references/EXAMPLES.md +80 -0
- package/concepts/bc-obsidian-bases/body/references/FUNCTIONS.md +49 -0
- package/concepts/bc-obsidian-bases/body/references/SYNTAX.md +82 -0
- package/concepts/bc-obsidian-bases/body/references/TROUBLESHOOTING.md +41 -0
- package/concepts/bc-obsidian-markdown/body/SKILL.md +47 -0
- package/concepts/bc-obsidian-markdown/body/references/CALLOUTS.md +40 -0
- package/concepts/bc-obsidian-markdown/body/references/EMBEDS.md +35 -0
- package/concepts/bc-obsidian-markdown/body/references/PROPERTIES.md +37 -0
- package/concepts/bc-optimize-code/body/SKILL.md +41 -0
- package/concepts/bc-performance-guardrails/body/SKILL.md +53 -0
- package/concepts/bc-performance-guardrails/body/measuring.md +29 -0
- package/concepts/bc-performance-guardrails/body/targets.md +20 -0
- package/concepts/bc-pipeline-to-done/body/SKILL.md +205 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-auditor.md +19 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-reviewer.md +19 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-worker.md +19 -0
- package/concepts/bc-pipeline-to-done/body/execute-issue.md +71 -0
- package/concepts/bc-pipeline-to-done/body/recovery-bundle.md +79 -0
- package/concepts/bc-pipeline-to-done/body/review-contract.md +105 -0
- package/concepts/bc-pipeline-to-done/body/roles.md +13 -0
- package/concepts/bc-pipeline-to-done/body/scripts/publish-check.py +172 -0
- package/concepts/bc-pipeline-to-done/body/source-issues.md +86 -0
- package/concepts/bc-pipeline-to-done/body/source-work-items.md +76 -0
- package/concepts/bc-plain-language/body/SKILL.md +134 -0
- package/concepts/bc-plan-slicing/body/SKILL.md +56 -0
- package/concepts/bc-plan-to-pipeline/body/SKILL.md +89 -0
- package/concepts/bc-prd-drafting/body/SKILL.md +43 -0
- package/concepts/bc-prompting-agents/body/SKILL.md +278 -0
- package/concepts/bc-prototype/body/SKILL.md +40 -0
- package/concepts/bc-qmd/body/SKILL.md +64 -0
- package/concepts/bc-research/body/SKILL.md +26 -0
- package/concepts/bc-security-audit/body/AI-AND-LLM.md +25 -0
- package/concepts/bc-security-audit/body/ATTACK-CLASSES.md +35 -0
- package/concepts/bc-security-audit/body/DESKTOP-MOBILE-AND-LOCAL-IPC.md +28 -0
- package/concepts/bc-security-audit/body/RECONNAISSANCE.md +49 -0
- package/concepts/bc-security-audit/body/SKILL.md +117 -0
- package/concepts/bc-security-audit/body/SUPPLY-CHAIN-AND-RELEASE.md +28 -0
- package/concepts/bc-security-audit/body/VALIDATION-AND-REPORTING.md +124 -0
- package/concepts/bc-security-audit/body/WEB-PROTOCOL-AND-AUTH.md +27 -0
- package/concepts/bc-security-audit/body/validate_audit.py +151 -0
- package/concepts/bc-self-improve/body/SKILL.md +104 -0
- package/concepts/bc-seo/body/CITATIONS.md +23 -0
- package/concepts/bc-seo/body/IMAGE-SEO.md +350 -0
- package/concepts/bc-seo/body/SKILL.md +453 -0
- package/concepts/bc-setup-project/body/SKILL.md +252 -0
- package/concepts/bc-setup-project/body/scaffold.py +2751 -0
- package/concepts/bc-setup-project/body/starter-items.md +157 -0
- package/concepts/bc-setup-project/body/work-data.md +114 -0
- package/concepts/bc-setup-project/body/work_index.py +626 -0
- package/concepts/bc-setup-project/body/work_spent.py +220 -0
- package/concepts/bc-subagent-driven-development/body/SKILL.md +61 -0
- package/concepts/bc-tdd/body/SKILL.md +184 -0
- package/concepts/bc-tdd/body/formal.md +77 -0
- package/concepts/bc-tdd/body/mocking.md +49 -0
- package/concepts/bc-tdd/body/properties.md +59 -0
- package/concepts/bc-tdd/body/refactoring.md +12 -0
- package/concepts/bc-tdd/body/scripts/confirm-red.py +136 -0
- package/concepts/bc-tdd/body/tests.md +59 -0
- package/concepts/bc-teach/body/GLOSSARY-FORMAT.md +36 -0
- package/concepts/bc-teach/body/LEARNING-RECORD-FORMAT.md +60 -0
- package/concepts/bc-teach/body/MISSION-FORMAT.md +34 -0
- package/concepts/bc-teach/body/RESOURCES-FORMAT.md +53 -0
- package/concepts/bc-teach/body/REVIEW-FORMAT.md +48 -0
- package/concepts/bc-teach/body/SKILL.md +281 -0
- package/concepts/bc-teach/body/WIKI-FORMAT.md +58 -0
- package/concepts/bc-teach/body/scripts/due.py +65 -0
- package/concepts/bc-to-spec/body/SKILL.md +21 -0
- package/concepts/bc-to-tickets/body/SKILL.md +21 -0
- package/concepts/bc-triage/body/AGENT-BRIEF.md +38 -0
- package/concepts/bc-triage/body/OUT-OF-SCOPE.md +51 -0
- package/concepts/bc-triage/body/SKILL.md +81 -0
- package/concepts/bc-unslop/body/SKILL.md +269 -0
- package/concepts/bc-using-git-worktrees/body/SKILL.md +91 -0
- package/concepts/bc-wiki-maintain/body/SKILL.md +361 -0
- package/concepts/bc-wiki-maintain/body/runner/README.md +552 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-lint.service +24 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-lint.timer +15 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain-all.service +29 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain-all.timer +16 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain.service +28 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain.timer +12 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-notify@.service +15 -0
- package/concepts/bc-wiki-maintain/body/runner/notify-failure.sh +92 -0
- package/concepts/bc-wiki-maintain/body/runner/run-lint.sh +69 -0
- package/concepts/bc-wiki-maintain/body/runner/run-promotion-all.sh +103 -0
- package/concepts/bc-wiki-maintain/body/runner/run-promotion.sh +270 -0
- package/concepts/bc-wiki-maintain/body/wiki_lint.py +958 -0
- package/concepts/bc-wiki-maintain/body/wiki_search.py +206 -0
- package/concepts/bc-work-sync/body/PLAN.md +46 -0
- package/concepts/bc-work-sync/body/SKILL.md +71 -0
- package/concepts/bc-writing-plans/body/SKILL.md +79 -0
- package/package.json +130 -4
- package/packages/agent-kernel-pi/AGENT-KERNEL.md +109 -0
- package/packages/agent-kernel-pi/index.js +8 -0
- package/packages/agent-kernel-pi/package.json +12 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-teach
|
|
3
|
+
description: Use when the user wants to learn a topic or skill over multiple sessions, with this directory as their dedicated learning workspace or an explicit .bc-agent teach adapter.
|
|
4
|
+
argument-hint: "What would you like to learn about?"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user has asked you to teach them something. This is a stateful request — they intend to learn the topic over multiple sessions. (Adapted from Matt Pocock's `bc-teach` skill, with a knowledge layer based on Karpathy's LLM-wiki pattern.)
|
|
8
|
+
|
|
9
|
+
## Workspace resolution
|
|
10
|
+
|
|
11
|
+
Resolve the state home before treating the current directory as a teaching workspace.
|
|
12
|
+
A valid host marker makes writes resolve inside the existing `.bc-agent` vault, so unrelated
|
|
13
|
+
project source code at the project root is not a reason to create root teach files or to block
|
|
14
|
+
hosted use. Without a valid marker, **guard first:** if the selected directory contains content
|
|
15
|
+
that is clearly not a teaching workspace (source code, a git repo with unrelated files), ask the
|
|
16
|
+
user before creating files there — suggest a dedicated directory per topic instead. One mission
|
|
17
|
+
per workspace.
|
|
18
|
+
|
|
19
|
+
### Hosted .bc-agent adapter
|
|
20
|
+
|
|
21
|
+
Before reading or writing any teaching state, resolve `<teach-root>` and both candidate homes:
|
|
22
|
+
|
|
23
|
+
1. Resolve the marker and its invocation context before selecting a home. If the current
|
|
24
|
+
directory is `.bc-agent` or one of its descendants, locate that owning `.bc-agent` directory
|
|
25
|
+
and its marker at `references/teach-skill.md`; its marker-owning project root is the parent of
|
|
26
|
+
`.bc-agent`. Otherwise inspect the current directory and nearest ancestors for the explicit
|
|
27
|
+
marker at `.bc-agent/references/teach-skill.md`; the directory containing that `.bc-agent` is
|
|
28
|
+
the marker-owning project root. A valid marker is structurally complete only when its first
|
|
29
|
+
line is exactly `<!-- teach-host-adapter: v1 -->` and its complete `## Hosted teach path map`
|
|
30
|
+
table exactly matches one of the two approved maps below (they differ only in the Glossary
|
|
31
|
+
row). A prefix-only, missing-row, or altered-map file is incomplete and is not a host contract. Read a valid marker before using host paths; it is
|
|
32
|
+
the opt-in adapter for an existing initializer host, not an instruction to run `bc-setup-project`.
|
|
33
|
+
2. Check standalone state (`MISSION.md`, `REVIEW.md`, `GLOSSARY.md`, `RESOURCES.md`, `NOTES.md`,
|
|
34
|
+
`learning-records/`, or `lessons/`) in the current directory first. When a marker candidate is
|
|
35
|
+
found, also inspect its marker-owning project root for those same paths. This second check is
|
|
36
|
+
required when invoked from `<project>/.bc-agent`, where root standalone state would otherwise be
|
|
37
|
+
missed. If any is present, preserve that standalone home and report it as a competing home.
|
|
38
|
+
Match names by exact case from a directory listing: in a host whose adapter maps the Glossary
|
|
39
|
+
to the root `glossary.md`, that file is the shared project glossary, not standalone state,
|
|
40
|
+
even where a case-insensitive filesystem also answers to `GLOSSARY.md`.
|
|
41
|
+
3. With a valid marker and no competing standalone state, use the marked `.bc-agent` directory as
|
|
42
|
+
`<teach-root>` — `.bc-agent` when invoked from the project root and the current vault when
|
|
43
|
+
invoked from vault context. Resolve every mapped path below relative to `<teach-root>`.
|
|
44
|
+
4. Without a valid marker, use the current directory as `<teach-root>` and keep the standalone
|
|
45
|
+
paths below authoritative. Do not treat an arbitrary `.bc-agent` directory as a host and do
|
|
46
|
+
not auto-run initialization.
|
|
47
|
+
5. If standalone teach state and a valid host marker compete, stop before writing, name both homes
|
|
48
|
+
to the user, and ask which one to use. Choosing the host for reading or writing is not approval
|
|
49
|
+
to migrate: leave every standalone file untouched unless the user separately and explicitly
|
|
50
|
+
requests consolidation or migration. Choosing standalone continues to use the original paths.
|
|
51
|
+
An incomplete marker is not a host contract: report the missing adapter and remain standalone
|
|
52
|
+
until the user explicitly chooses and repairs the host.
|
|
53
|
+
|
|
54
|
+
The host's schema and orientation remain owned by `bc-setup-project`; `bc-teach` owns the mapped
|
|
55
|
+
pedagogy, evidence, source/knowledge content, spaced-repetition state, and the glossary terms
|
|
56
|
+
the learner needs (in a hybrid host the glossary is shared with the project; see below).
|
|
57
|
+
The marker is intentionally a thin path adapter, not a generic config framework or copied
|
|
58
|
+
teach body.
|
|
59
|
+
|
|
60
|
+
### Hosted path map
|
|
61
|
+
|
|
62
|
+
With a valid adapter, these logical teach surfaces use the existing host paths. The host's
|
|
63
|
+
adapter file is the authority for the map: read it and use the paths it names. All paths below
|
|
64
|
+
are relative to `<teach-root>`. A vault host (the `learning` archetype) uses this map:
|
|
65
|
+
|
|
66
|
+
| Teach surface | Hosted path | Owner |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| Mission | `learning/plan.md` (no hosted `MISSION.md`) | `bc-teach` |
|
|
69
|
+
| Review queue | `learning/review.md` | `bc-teach` |
|
|
70
|
+
| Learning records | `learning/records/` | `bc-teach` |
|
|
71
|
+
| Lessons and session artifacts | existing `sessions/` (never `learning/sessions/`) | `bc-teach` |
|
|
72
|
+
| Notes | `learning/notes.md` | `bc-teach` |
|
|
73
|
+
| Raw sources | existing `sources/` | `bc-teach` |
|
|
74
|
+
| Compiled knowledge / wiki concepts | existing `concepts/` | `bc-teach` |
|
|
75
|
+
| Resource catalog | `references/teach-resources.md` | `bc-teach` |
|
|
76
|
+
| Glossary | the existing Glossary section of `project/overview.md` | `bc-teach` |
|
|
77
|
+
| Catalog and history | shared `index.md` and `log.md` | `bc-setup-project` host schema; `bc-teach` updates teach entries |
|
|
78
|
+
|
|
79
|
+
A visible-layout hybrid host (code or operations work plus learning) uses the same map except
|
|
80
|
+
for the Glossary row, which names the project's root `glossary.md`, one level above `<teach-root>`:
|
|
81
|
+
|
|
82
|
+
| Teach surface | Hosted path | Owner |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| Glossary | the project's root `glossary.md` (`../glossary.md`), shared with the project | the project; `bc-teach` adds and refines learner terms |
|
|
85
|
+
|
|
86
|
+
In a hybrid host there is one glossary. Add and refine the terms the learner needs there, in
|
|
87
|
+
that file's one-line format, and do not remove or redefine project terms without asking the
|
|
88
|
+
user; `bc-domain-modeling` and planning skills keep using the same file.
|
|
89
|
+
|
|
90
|
+
Do not create duplicate root `MISSION.md`, `REVIEW.md`, `GLOSSARY.md`, `RESOURCES.md`, or
|
|
91
|
+
`NOTES.md` files in a hosted workspace. Do not create `learning/sessions/`; lessons and
|
|
92
|
+
session artifacts use the existing `sessions/` directory. The host `index.md` and `log.md`
|
|
93
|
+
are shared catalog/history surfaces and must receive teach entries without replacing host
|
|
94
|
+
orientation or unrelated project history.
|
|
95
|
+
|
|
96
|
+
### Explicit destructive migration — only on a user request
|
|
97
|
+
|
|
98
|
+
Choosing the host for reading or writing is not migration. Only perform this operation when
|
|
99
|
+
the user explicitly asks to **consolidate** or **migrate** the standalone teach workspace into
|
|
100
|
+
the host, never because a marker was discovered or as part of another action. This operation
|
|
101
|
+
is destructive: it copies/moves content into the host and then **deletes the standalone
|
|
102
|
+
originals**. Tell the user plainly that the originals will be deleted before doing it.
|
|
103
|
+
|
|
104
|
+
Use a copy-then-verify sequence. Inventory every existing standalone item, prepare its mapped
|
|
105
|
+
host destination, and preflight every destination for collisions and writability before any
|
|
106
|
+
write. Verify that every destination is complete before removing any original; for directories,
|
|
107
|
+
verify every content-bearing file, not merely the directory. Content-bearing records, sources,
|
|
108
|
+
knowledge pages, and session artifacts must arrive byte-identical (compare bytes or hashes).
|
|
109
|
+
The mission, notes, queue, catalog/history, glossary, and resource catalog may be reformatted
|
|
110
|
+
to their host formats, but verify every source item, row, entry, or glossary term is represented.
|
|
111
|
+
Do not overwrite unrelated host content or proceed through a destination conflict.
|
|
112
|
+
|
|
113
|
+
If any destination is missing, incomplete, conflicting, or unwritable, stop and report the
|
|
114
|
+
failure with **all standalone originals intact**; delete nothing. Only after every mapped
|
|
115
|
+
destination passes verification may the corresponding standalone files and directories be
|
|
116
|
+
removed. Choosing the host without an explicit migration request leaves every standalone file
|
|
117
|
+
untouched.
|
|
118
|
+
|
|
119
|
+
| Standalone source | Hosted destination (relative to `<teach-root>`) | Verification |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| `MISSION.md` | `learning/plan.md` | mission content represented in the host mission format |
|
|
122
|
+
| `REVIEW.md` | `learning/review.md` | every review item and scheduling value represented |
|
|
123
|
+
| `learning-records/*` | `learning/records/` | each record arrives byte-identical |
|
|
124
|
+
| `lessons/*` | existing `sessions/` | each lesson/session artifact arrives byte-identical |
|
|
125
|
+
| `NOTES.md` | `learning/notes.md` | every note represented |
|
|
126
|
+
| `sources/*` | existing `sources/` | each source arrives byte-identical |
|
|
127
|
+
| `wiki/*` | existing `concepts/` | each knowledge page arrives byte-identical |
|
|
128
|
+
| `RESOURCES.md` | `references/teach-resources.md` | every catalog entry represented |
|
|
129
|
+
| `GLOSSARY.md` | the adapter's Glossary path: the Glossary section of `project/overview.md` (vault host) or the root `glossary.md` (hybrid host) | every term and definition represented; in a hybrid host, in the one-line format and with no project term removed or redefined without asking |
|
|
130
|
+
| `index.md` | shared `index.md` | every teach catalog entry represented without replacing host orientation |
|
|
131
|
+
| `log.md` | shared `log.md` | every teach history entry represented without replacing host history |
|
|
132
|
+
|
|
133
|
+
When the adapter maps the Glossary to the Glossary section of `project/overview.md` (vault
|
|
134
|
+
host), `bc-teach` owns that section; planning and maintenance skills must leave it alone, and
|
|
135
|
+
non-glossary host sections remain available to their existing owners. When it maps the Glossary
|
|
136
|
+
to the hybrid host's root `glossary.md`, the file is shared and the project owns it, as above. The host search path is for knowledge and learning-record retrieval;
|
|
137
|
+
direct reads of known mission, review queue, and notes state remain correct. Use the host's
|
|
138
|
+
canonical search path rather than `index.md` to locate knowledge pages or learning records.
|
|
139
|
+
|
|
140
|
+
### Standalone path map
|
|
141
|
+
|
|
142
|
+
Without the adapter, the workspace has three layers plus pedagogy state. These paths and
|
|
143
|
+
formats remain unchanged:
|
|
144
|
+
|
|
145
|
+
**Raw sources (immutable — you read, never modify):**
|
|
146
|
+
- `./sources/*` — ingested source material: clipped articles, papers, transcripts. The ground truth that wiki claims cite.
|
|
147
|
+
- `RESOURCES.md` — the annotated, vetted catalog of sources and communities. Format: [RESOURCES-FORMAT.md](./RESOURCES-FORMAT.md).
|
|
148
|
+
|
|
149
|
+
**The wiki (you write and maintain it entirely):**
|
|
150
|
+
- `./wiki/*.md` — interlinked markdown concept pages: the compiled, compounding knowledge of this workspace. Format: [WIKI-FORMAT.md](./WIKI-FORMAT.md).
|
|
151
|
+
- `GLOSSARY.md` — the canonical terminology, at the root, nowhere else. Format: [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md).
|
|
152
|
+
- `index.md` — catalog of every page in the workspace: one line each with link and summary, grouped by category. Updated on every write.
|
|
153
|
+
- `log.md` — append-only session log. Entries start `## [YYYY-MM-DD] <type> | <title>` where type is `lesson`, `ingest`, `review`, or `lint` — greppable with `grep "^## \[" log.md | tail -5`.
|
|
154
|
+
|
|
155
|
+
**Pedagogy state:**
|
|
156
|
+
- `MISSION.md` — the _reason_ the user is learning this. Grounds every teaching decision. Format: [MISSION-FORMAT.md](./MISSION-FORMAT.md).
|
|
157
|
+
- `REVIEW.md` — the spaced-repetition queue. Format: [REVIEW-FORMAT.md](./REVIEW-FORMAT.md).
|
|
158
|
+
- `./learning-records/*.md` — ADR-style records of demonstrated understanding, numbered `0001-<dash-case-name>.md`. These drive the zone of proximal development. Format: [LEARNING-RECORD-FORMAT.md](./LEARNING-RECORD-FORMAT.md).
|
|
159
|
+
- `./lessons/*.html` — review artifacts produced after a lesson is taught, numbered `0001-<dash-case-name>.html`.
|
|
160
|
+
- `NOTES.md` — your scratchpad for user preferences and working notes.
|
|
161
|
+
|
|
162
|
+
Create directories lazily, only when first written to, in whichever path home the adapter resolves.
|
|
163
|
+
|
|
164
|
+
## Session Ritual
|
|
165
|
+
|
|
166
|
+
Every session starts the same way, before any new material:
|
|
167
|
+
|
|
168
|
+
1. Read the resolved mission, notes, and last few `log.md` entries under `<teach-root>`.
|
|
169
|
+
In hosted mode these are `learning/plan.md`, `learning/notes.md`, and the shared host history;
|
|
170
|
+
read the shared `index.md` only for broad orientation. The known review queue is read directly
|
|
171
|
+
by the next step. For hosted knowledge pages and learning records, use the host's canonical
|
|
172
|
+
search path and open the returned paths — never use `index.md` as a lookup. Standalone mode
|
|
173
|
+
keeps its existing direct `index.md`-guided path.
|
|
174
|
+
2. **Review first.** Run `python3 <this skill's directory>/scripts/due.py <resolved review queue>`
|
|
175
|
+
— in hosted mode the queue is `learning/review.md`; standalone remains `REVIEW.md`. It
|
|
176
|
+
does the date math and prints what's due with next-interval suggestions. Quiz the user on
|
|
177
|
+
up to 3 due items (free recall, in conversation), then update the resolved review queue
|
|
178
|
+
with the dates the script suggested. **Ask only one question per message and wait for the
|
|
179
|
+
learner's answer before asking the next**; batching questions increases working-memory
|
|
180
|
+
load and weakens the feedback loop. If the user fails an item, that may be today's lesson.
|
|
181
|
+
3. Only then proceed — to a lesson, an ingest, or a lint, whichever the session calls for.
|
|
182
|
+
4. Before the session ends, append a teach entry to the resolved `log.md` and update the
|
|
183
|
+
resolved `index.md` if pages changed; preserve unrelated host history and orientation.
|
|
184
|
+
|
|
185
|
+
If the resolved mission is missing or vague, your first and only job is to interview the user
|
|
186
|
+
about why they want to learn this. Push back on vagueness — "ship a Rust CLI to my team" beats
|
|
187
|
+
"learn Rust." A bad mission is worse than no mission.
|
|
188
|
+
|
|
189
|
+
## Gates
|
|
190
|
+
|
|
191
|
+
These gates exist because their failure modes are in-the-moment rationalization — the moment a gate is inconvenient is the moment your judgment about it is least reliable, so the predictable temptations are pre-refuted below. They bind the impulse of the moment, not your considered judgment: if you conclude a gate itself is wrong for this user or this topic, say so to the user and propose changing this skill, but keep following the current gate for this session unless the user explicitly approves changing course. Openly evolving the rule is legitimate; quietly skipping it never is.
|
|
192
|
+
|
|
193
|
+
**Review-first gate.** No new material until due review items are quizzed and the resolved review queue is updated (`REVIEW.md` standalone, `learning/review.md` hosted). Not valid excuses: "the user seems eager to start" (review takes two minutes; eagerness survives it), "the user is short on time" (then review IS the session — it's the highest-value two minutes available), "the user asked for a specific topic" (review first, then teach it), "they clearly remember this" (that feeling is fluency, not storage — the whole point is testing it). A skipped review silently kills the queue, and the queue is what makes this skill work across sessions. If the user explicitly refuses review after you've quizzed once, note it in the resolved notes file and move on — respect beats nagging.
|
|
194
|
+
|
|
195
|
+
**Evidence gate.** No `demonstrated` learning record without demonstrated understanding. Not valid excuses: "they said they know it" (spot-check with one question first), "their answer was mostly right" (probe the wrong part — that's where the misconception lives), "I explained it clearly so they must have it" (coverage is not learning), "crediting them keeps the session positive" (an over-credited record makes every future lesson land above their head — generosity now is cruelty later). Self-reported prior knowledge may be recorded only as `Status: self-reported`, with an explicit note that future sessions must spot-check before relying on it.
|
|
196
|
+
|
|
197
|
+
**Citation gate.** No durable factual claim in a wiki page or lesson artifact without a source behind it. Conversational explanations should be grounded in the wiki or vetted sources; durable pages need explicit citations. Not a valid excuse: "this is common knowledge" — if it's truly common, a source takes thirty seconds to find; if you can't find one, it was a parametric guess.
|
|
198
|
+
|
|
199
|
+
## Philosophy
|
|
200
|
+
|
|
201
|
+
Deep learning needs three things:
|
|
202
|
+
|
|
203
|
+
- **Knowledge** — compiled once from vetted sources into the wiki, then kept current. Never trust your parametric knowledge for factual claims; cite wiki pages, which cite sources.
|
|
204
|
+
- **Skills** — built through effortful retrieval with tight feedback loops.
|
|
205
|
+
- **Wisdom** — from real practitioners. Delegate to communities (see RESOURCES-FORMAT.md); respect it if the user opts out.
|
|
206
|
+
|
|
207
|
+
Distinguish **fluency strength** (in-the-moment retrieval, feels like mastery, isn't) from **storage strength** (long-term retention, the real goal). Build storage strength with desirable difficulty: retrieval practice, spacing (via the resolved review queue), and interleaving related skills.
|
|
208
|
+
|
|
209
|
+
For *acquiring* knowledge, difficulty is the enemy — it eats working memory. For *practicing* skills, difficulty is the tool. Keep explanations easy and practice hard.
|
|
210
|
+
|
|
211
|
+
## Operations
|
|
212
|
+
|
|
213
|
+
### Lessons (the default)
|
|
214
|
+
|
|
215
|
+
A smallest inline `bc-explain-visually` visual is fine mid-lesson; do not write or open HTML
|
|
216
|
+
mid-lesson, and the after-lesson artifact remains owned by this skill.
|
|
217
|
+
|
|
218
|
+
The primary unit of teaching is an **in-conversation lesson**, not a generated file. The agent grading free-form answers in real time is a tighter feedback loop than any static quiz. A lesson:
|
|
219
|
+
|
|
220
|
+
1. Teaches one tightly-scoped thing tied to the mission, sized to a single tangible win, inside the user's zone of proximal development.
|
|
221
|
+
2. Draws its knowledge from the wiki (ingesting a source first if the wiki doesn't cover it), presenting the minimum needed, with citations.
|
|
222
|
+
3. Drives practice through **free recall**: ask the user to explain, predict, or produce — then give immediate, specific feedback. Ask **one question per message**, wait for the answer, give feedback, and only then ask the next question; never present a batch of numbered questions. Prefer open questions over multiple choice; recognition is not recall. If you do use multiple choice, distractors must be *plausible misconceptions*, not length-matched filler.
|
|
223
|
+
4. For physical/real-world skills (yoga, cooking, lifting), walk the user through the steps and have them self-report against concrete checkpoints.
|
|
224
|
+
5. Names one primary source — the single best resource to read or watch next.
|
|
225
|
+
|
|
226
|
+
**Afterwards**, write the lesson artifact to the resolved lesson/session directory as a clean,
|
|
227
|
+
readable HTML page (think Tufte) summarizing what was taught, linking to the relevant knowledge
|
|
228
|
+
pages and the primary source. Use `./lessons/` standalone and the existing `sessions/` directory
|
|
229
|
+
hosted; never create `learning/sessions/`. If the artifact contains any interactive element,
|
|
230
|
+
**verify it works before delivering it** — open it and test the interaction, or keep it static.
|
|
231
|
+
To open files for the user, detect the platform: `open` (macOS), `xdg-open` (Linux).
|
|
232
|
+
|
|
233
|
+
Then update state: fold durable knowledge into the resolved knowledge directory, add an item to
|
|
234
|
+
the resolved review queue (`REVIEW.md` standalone or `learning/review.md` hosted), write a
|
|
235
|
+
learning record only if the evidence bar was met, and append the session to the resolved `log.md`.
|
|
236
|
+
|
|
237
|
+
### Ingest
|
|
238
|
+
|
|
239
|
+
When the user brings a source (or you find one filling a gap in the resolved resource catalog):
|
|
240
|
+
vet it per the protocol in RESOURCES-FORMAT.md, save the material to the resolved raw-source
|
|
241
|
+
directory (`./sources/` in both modes), read it, and **discuss the key takeaways with the user**
|
|
242
|
+
— ingestion is itself teaching. Then write a source summary and affected concept pages in the
|
|
243
|
+
resolved knowledge directory (`./wiki/` standalone or `./concepts/` hosted), flag contradictions
|
|
244
|
+
with existing claims rather than silently overwriting, update the resolved resource catalog and
|
|
245
|
+
shared/standalone `index.md`, and log it. One source may touch many pages — that maintenance is
|
|
246
|
+
your job, not the user's.
|
|
247
|
+
|
|
248
|
+
### File answers back
|
|
249
|
+
|
|
250
|
+
When the user asks a question mid-session and the answer required real synthesis — a comparison,
|
|
251
|
+
a connection across pages, an analysis — file it into the resolved knowledge directory as a page
|
|
252
|
+
(`./wiki/` standalone or `./concepts/` hosted) instead of letting it evaporate into chat history.
|
|
253
|
+
Explorations should compound like everything else.
|
|
254
|
+
|
|
255
|
+
### Lint
|
|
256
|
+
|
|
257
|
+
Periodically (a reasonable default: every ~5 sessions, or when the user asks), health-check the workspace:
|
|
258
|
+
|
|
259
|
+
- Contradictions between knowledge pages, or between knowledge and the resolved glossary
|
|
260
|
+
(`GLOSSARY.md` standalone; the adapter's Glossary path hosted).
|
|
261
|
+
- Claims superseded by newer sources — and learning records that need `Status: superseded` as a result.
|
|
262
|
+
- Orphan knowledge pages with no inbound links; concepts mentioned often but lacking a page.
|
|
263
|
+
- Stale review-queue items and dead links in the resolved resource catalog.
|
|
264
|
+
- Gaps the mission needs that no source covers — append to that catalog's `## Gaps`.
|
|
265
|
+
|
|
266
|
+
Report findings to the user, fix the mechanical ones, and log the pass.
|
|
267
|
+
|
|
268
|
+
## Zone of Proximal Development
|
|
269
|
+
|
|
270
|
+
Each lesson should feel "challenged just enough." If the user names what they want to learn, teach that. Otherwise, derive the next step from learning records + mission. Hold a high evidence bar: a half-right answer is not demonstrated understanding — probe with a follow-up before crediting it. Be especially suspicious of your own inclination to be generous; sycophantic grading corrupts every future session's difficulty calibration.
|
|
271
|
+
|
|
272
|
+
## Mission Drift
|
|
273
|
+
|
|
274
|
+
Missions change as understanding deepens — this is normal and good signal. Confirm with the user,
|
|
275
|
+
update the resolved mission (`MISSION.md` standalone; `learning/plan.md` hosted), and write a
|
|
276
|
+
learning record capturing why it shifted.
|
|
277
|
+
|
|
278
|
+
## Notes
|
|
279
|
+
|
|
280
|
+
Record how the user likes to be taught (pace, depth, format preferences, opt-outs) in the resolved
|
|
281
|
+
notes file (`NOTES.md` standalone; `learning/notes.md` hosted) so future sessions don't re-learn it.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Wiki Format
|
|
2
|
+
|
|
3
|
+
`./wiki/*.md` is the compiled knowledge of a standalone workspace: interlinked markdown pages the agent writes and maintains entirely. With the explicit `.bc-agent/references/teach-skill.md` adapter, use the existing `./concepts/` directory in the host vault instead — never create a parallel hosted `wiki/`. The user reads it; the agent owns it. It sits between the raw sources (`./sources/`, and the resolved resource catalog) and the teaching — lessons draw from the knowledge pages, which cite the sources. Knowledge is compiled once on ingest and then *kept current*, not re-derived every session.
|
|
4
|
+
|
|
5
|
+
### Hosted path substitutions
|
|
6
|
+
|
|
7
|
+
When hosted, resolve these surfaces relative to `<teach-root>`: raw sources remain `sources/`; compiled wiki pages are `concepts/`; the resource catalog is `references/teach-resources.md`; the glossary is the existing Glossary section of `project/overview.md`; and the shared catalog/history remain `index.md` / `log.md`. The standalone `GLOSSARY.md`, `RESOURCES.md`, and `wiki/` paths remain authoritative only when no valid adapter is present.
|
|
8
|
+
|
|
9
|
+
## Page types
|
|
10
|
+
|
|
11
|
+
- **Concept pages** (`hypertrophy.md`, `ownership.md`) — one concept each: a tight explanation, how it relates to neighboring concepts, common misconceptions, citations.
|
|
12
|
+
- **Source summaries** (`source-nuckols-volume.md`) — the distilled takeaways of one ingested source, written during ingest.
|
|
13
|
+
- **Synthesis pages** (`comparison-tempo-vs-load.md`) — comparisons, analyses, and answers to user questions that were worth keeping.
|
|
14
|
+
|
|
15
|
+
File names are dash-case. One page, one subject — split pages that sprawl.
|
|
16
|
+
|
|
17
|
+
## Page conventions
|
|
18
|
+
|
|
19
|
+
- **Link densely.** Use relative markdown links to other wiki pages (`[progressive overload](./progressive-overload.md)`). The connections are as valuable as the pages. A page nothing links to is a lint finding.
|
|
20
|
+
- **Cite everything.** Every factual claim links to a source summary page or an entry in the resolved resource catalog (`RESOURCES.md` standalone or `references/teach-resources.md` hosted). Uncited claims are parametric guesses and don't belong here.
|
|
21
|
+
- **Flag contradictions, don't bury them.** When a new source disagrees with an existing claim, state both positions and which source says what. Resolving the contradiction is a conversation with the user, not a silent edit.
|
|
22
|
+
- **Use glossary terms.** Once a term is in the resolved glossary (`GLOSSARY.md` standalone or the Glossary section of `project/overview.md` hosted), the knowledge pages use it — including inside other pages' explanations.
|
|
23
|
+
- **Keep pages current.** When an ingest or lesson changes the picture, update every affected page in the same pass. Stale pages are worse than missing ones.
|
|
24
|
+
- **Printable on demand.** If the user wants a printable cheat sheet (poses, syntax tables, routines), render the relevant knowledge page(s) to a clean HTML file in the resolved lesson/session directory (`./lessons/` standalone or existing `./sessions/` hosted) — the markdown knowledge page remains the source of truth.
|
|
25
|
+
|
|
26
|
+
## index.md
|
|
27
|
+
|
|
28
|
+
Lives at the standalone workspace root, or at the host vault root when the adapter is active. It is the shared catalog of every relevant page — knowledge pages, source summaries, learning records, and lesson/session artifacts — one line each:
|
|
29
|
+
|
|
30
|
+
```md
|
|
31
|
+
# Index
|
|
32
|
+
|
|
33
|
+
## Concepts
|
|
34
|
+
- [Progressive overload](wiki/progressive-overload.md) — increasing demand over time; the engine of adaptation
|
|
35
|
+
- [RPE](wiki/rpe.md) — perceived-exertion scale; how intensity is prescribed here
|
|
36
|
+
|
|
37
|
+
## Sources
|
|
38
|
+
- [Nuckols — How Much Should I Train?](wiki/source-nuckols-volume.md) — volume landmarks evidence review (ingested 2026-06-12)
|
|
39
|
+
|
|
40
|
+
## Learning records
|
|
41
|
+
- LR-0001 — knows basic barbell lifts from prior gym experience — active
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Update the resolved `index.md` on every teach write, preserving unrelated host entries. At session start, read it and drill into pages it points to — never skim the whole workspace.
|
|
45
|
+
|
|
46
|
+
## log.md
|
|
47
|
+
|
|
48
|
+
Lives at the standalone workspace root or host vault root. It is append-only and chronological; every session appends at least one teach entry:
|
|
49
|
+
|
|
50
|
+
```md
|
|
51
|
+
## [2026-06-12] lesson | RPE and autoregulation
|
|
52
|
+
Taught RPE scale; user demonstrated by rating a recalled set correctly (LR-0004). Added review item #7.
|
|
53
|
+
|
|
54
|
+
## [2026-06-12] ingest | Nuckols volume article
|
|
55
|
+
Vetted and ingested; touched progressive-overload.md, volume.md. Contradicts earlier claim on weekly set ceilings — flagged in volume.md.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Entry types: `lesson`, `ingest`, `review`, `lint`. The consistent prefix keeps the resolved log parseable: `grep "^## \[" log.md | tail -5` shows recent activity. Keep entries to 1–3 lines — the log is a timeline, not a journal; insights belong in learning records or knowledge pages.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Print review items that are due, with next-interval suggestions.
|
|
3
|
+
|
|
4
|
+
Usage: due.py [path/to/REVIEW.md]
|
|
5
|
+
|
|
6
|
+
Parses the markdown table in REVIEW.md (columns: #, Prompt, Source,
|
|
7
|
+
Last reviewed, Interval, Due) and prints items due today or earlier.
|
|
8
|
+
Date arithmetic lives here so the agent never has to do it in its head.
|
|
9
|
+
Items under a "## Retired" heading are ignored.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
import re
|
|
13
|
+
import sys
|
|
14
|
+
from datetime import date, timedelta
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
CAP_DAYS = 60
|
|
18
|
+
RESET_DAYS = 2
|
|
19
|
+
|
|
20
|
+
def parse(path: Path):
|
|
21
|
+
items, retired = [], False
|
|
22
|
+
for line in path.read_text().splitlines():
|
|
23
|
+
if line.startswith("#"):
|
|
24
|
+
retired = "retired" in line.lower()
|
|
25
|
+
continue
|
|
26
|
+
if retired or not line.strip().startswith("|"):
|
|
27
|
+
continue
|
|
28
|
+
cells = [c.strip() for c in line.strip().strip("|").split("|")]
|
|
29
|
+
if len(cells) < 6 or not cells[0].isdigit():
|
|
30
|
+
continue # header, separator, or malformed row
|
|
31
|
+
m_int = re.match(r"(\d+)\s*d", cells[4])
|
|
32
|
+
m_due = re.match(r"\d{4}-\d{2}-\d{2}", cells[5])
|
|
33
|
+
if not (m_int and m_due):
|
|
34
|
+
print(f"warning: row {cells[0]} has unparseable interval/due, skipping", file=sys.stderr)
|
|
35
|
+
continue
|
|
36
|
+
items.append({
|
|
37
|
+
"num": cells[0], "prompt": cells[1], "source": cells[2],
|
|
38
|
+
"interval": int(m_int.group(1)),
|
|
39
|
+
"due": date.fromisoformat(m_due.group(0)),
|
|
40
|
+
})
|
|
41
|
+
return items
|
|
42
|
+
|
|
43
|
+
def main():
|
|
44
|
+
path = Path(sys.argv[1] if len(sys.argv) > 1 else "REVIEW.md")
|
|
45
|
+
if not path.exists():
|
|
46
|
+
sys.exit(f"no review queue at {path} — nothing is due")
|
|
47
|
+
today = date.today()
|
|
48
|
+
due = sorted((i for i in parse(path) if i["due"] <= today), key=lambda i: i["due"])
|
|
49
|
+
print(f"today: {today}")
|
|
50
|
+
if not due:
|
|
51
|
+
print("nothing due — proceed to the session")
|
|
52
|
+
return
|
|
53
|
+
print(f"{len(due)} item(s) due:\n")
|
|
54
|
+
for i in due:
|
|
55
|
+
overdue = (today - i["due"]).days
|
|
56
|
+
passed = min(max(i["interval"] * 2, RESET_DAYS), CAP_DAYS)
|
|
57
|
+
print(f"#{i['num']} (due {i['due']}, {overdue}d overdue) [{i['source']}]")
|
|
58
|
+
print(f" prompt: {i['prompt']}")
|
|
59
|
+
print(f" if recalled: interval {passed}d, due {today + timedelta(days=passed)}")
|
|
60
|
+
print(f" if hard: interval {i['interval']}d, due {today + timedelta(days=i['interval'])}")
|
|
61
|
+
print(f" if failed: interval {RESET_DAYS}d, due {today + timedelta(days=RESET_DAYS)}")
|
|
62
|
+
print()
|
|
63
|
+
|
|
64
|
+
if __name__ == "__main__":
|
|
65
|
+
main()
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-to-spec
|
|
3
|
+
description: Turn the current conversation into a spec and publish it as a GitHub issue — no interview, just synthesis of what you've already discussed.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# To Spec
|
|
8
|
+
|
|
9
|
+
Draft a spec (the project’s PRD format) from the current conversation and codebase, then publish it as a GitHub issue. The drafting is the `/bc-prd-drafting` discipline; this orchestrator wraps it with publication.
|
|
10
|
+
|
|
11
|
+
**Issue tracker: GitHub**, via the `gh` CLI. A PRD parent issue is a planning/coordination artifact, not drainable work; `ready-for-agent` is reserved for implementation slices created by `/bc-to-tickets` or `/bc-plan-to-pipeline`.
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Draft.** Run `/bc-prd-drafting`: synthesize (do NOT interview), sketch and confirm the test seams, and write the PRD to the standard template. If scope is still too vague to synthesize, resolve it with `/bc-grilling` + `/bc-domain-modeling` first rather than interviewing here.
|
|
16
|
+
|
|
17
|
+
2. **Publish** the produced PRD as a GitHub parent issue:
|
|
18
|
+
```
|
|
19
|
+
gh issue create --title "<PRD: feature name>" --body-file <path>
|
|
20
|
+
```
|
|
21
|
+
Do **not** apply `ready-for-agent` to the PRD parent. Run `/bc-to-tickets` or `/bc-plan-to-pipeline` to create drainable `ready-for-agent` implementation slices.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-to-tickets
|
|
3
|
+
description: Break a plan, spec, or PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# To Tickets
|
|
8
|
+
|
|
9
|
+
Slice a plan into independently-grabbable vertical slices, then publish them as GitHub issues. The slicing is the `/bc-plan-slicing` discipline; this orchestrator wraps it with publication.
|
|
10
|
+
|
|
11
|
+
**Issue tracker: GitHub**, via the `gh` CLI. Slices that are ready for an agent to grab are published with the `ready-for-agent` label.
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Slice.** Run `/bc-plan-slicing`: gather context (fetch any passed issue reference), draft vertical tracer-bullet slices, and finalize them without waiting for approval. It returns the final breakdown in dependency order.
|
|
16
|
+
|
|
17
|
+
2. **Publish to GitHub.** For each final slice, publish a GitHub issue **in dependency order** (blockers first) so you can reference real issue numbers in "Blocked by":
|
|
18
|
+
```
|
|
19
|
+
gh issue create --title "<slice title>" --label ready-for-agent --body-file <path>
|
|
20
|
+
```
|
|
21
|
+
Publish with `ready-for-agent` unless instructed otherwise. **Do NOT close or modify any parent issue.**
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Writing Agent Briefs
|
|
2
|
+
|
|
3
|
+
An Agent Brief is the authoritative contract for `/bc-pipeline-to-done`. The original issue body and comments are context; the brief is what the AFK agent should be able to execute.
|
|
4
|
+
|
|
5
|
+
## Principles
|
|
6
|
+
|
|
7
|
+
- **Durable over precise:** describe interfaces, behavior, types, and contracts. Avoid file paths and line numbers unless the issue is specifically about a path.
|
|
8
|
+
- **Behavioral, not procedural:** say what the system should do, not how to edit it.
|
|
9
|
+
- **Complete acceptance criteria:** every criterion should be independently verifiable.
|
|
10
|
+
- **Explicit scope boundaries:** name related work that is not part of this issue.
|
|
11
|
+
|
|
12
|
+
## Template
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## Agent Brief
|
|
16
|
+
|
|
17
|
+
**Category:** bug / enhancement
|
|
18
|
+
**Summary:** one-line description
|
|
19
|
+
|
|
20
|
+
**Current behavior:**
|
|
21
|
+
What happens now, or the current state of the PR/diff.
|
|
22
|
+
|
|
23
|
+
**Desired behavior:**
|
|
24
|
+
What should happen after this issue is complete, including edge cases.
|
|
25
|
+
|
|
26
|
+
**Key interfaces / domain concepts:**
|
|
27
|
+
- `TypeOrCommandOrConcept` — what changes and why
|
|
28
|
+
|
|
29
|
+
**Acceptance criteria:**
|
|
30
|
+
- [ ] Specific, testable criterion
|
|
31
|
+
- [ ] Specific, testable criterion
|
|
32
|
+
|
|
33
|
+
**Out of scope:**
|
|
34
|
+
- Adjacent thing not included
|
|
35
|
+
|
|
36
|
+
**Blocked by:**
|
|
37
|
+
- `#NN`, or None — can start immediately
|
|
38
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Recording rejected requests
|
|
2
|
+
|
|
3
|
+
Record a rejected enhancement in the project's **work-dropped** folder (resolved as in [SKILL.md](SKILL.md#where-project-files-go)) so future triage can dedupe recurring requests and see why the decision was made. Record the reason every time: a rejection without one cannot be re-evaluated and will be re-argued.
|
|
4
|
+
|
|
5
|
+
## With a "Where things go" table
|
|
6
|
+
|
|
7
|
+
The rejection is a work item in the work-dropped folder, named and numbered by the work-item rules in `.bc-agent/AGENTS.md` (`<3-digit number>-<slug>.md`; next number is the highest across all stage folders plus one) and written from `.bc-agent/templates/work-item.md`. One item per rejected concept, not per issue:
|
|
8
|
+
|
|
9
|
+
```md
|
|
10
|
+
# Dark mode
|
|
11
|
+
|
|
12
|
+
Why: users asked for a dark theme (#42).
|
|
13
|
+
Done when: not applicable; rejected.
|
|
14
|
+
Issue: #42
|
|
15
|
+
|
|
16
|
+
## Steps
|
|
17
|
+
|
|
18
|
+
## Outcome
|
|
19
|
+
|
|
20
|
+
Rejected: this project does not support dark mode or user-facing theming. <Durable, substantive reason: project scope, technical constraints, or strategic decisions, not temporary workload.>
|
|
21
|
+
|
|
22
|
+
Prior requests:
|
|
23
|
+
- #42 — "Add dark mode support"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Create numbered items only from the main checkout. Why: two git worktrees cannot see each other's numbers and would pick the same one. In a worktree, add a one-line note to the ideas file instead, tell the maintainer the rejection still needs recording, and do not close the issue until the item exists. Why: closed with only an ideas line, the reason could be lost.
|
|
27
|
+
|
|
28
|
+
## Without a table
|
|
29
|
+
|
|
30
|
+
Use `.bc-agent/out-of-scope/<concept>.md`, one file per concept:
|
|
31
|
+
|
|
32
|
+
```md
|
|
33
|
+
# Dark Mode
|
|
34
|
+
|
|
35
|
+
This project does not support dark mode or user-facing theming.
|
|
36
|
+
|
|
37
|
+
## Why this is out of scope
|
|
38
|
+
|
|
39
|
+
Durable, substantive reason. Reference project scope, technical constraints, or strategic decisions — not temporary workload.
|
|
40
|
+
|
|
41
|
+
## Prior requests
|
|
42
|
+
|
|
43
|
+
- #42 — "Add dark mode support"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Rules
|
|
47
|
+
|
|
48
|
+
- Check the work-dropped folder during triage before recommending new work.
|
|
49
|
+
- When a new request matches an existing record, add the issue to its prior requests instead of creating a second record. Why: one record per concept keeps the reason in one place.
|
|
50
|
+
- Record only rejected enhancements, not bugs and not already-implemented features.
|
|
51
|
+
- If the maintainer reconsiders, edit or remove the record and proceed through normal triage; with a table, `git mv` the item to the work-planned folder and replace the rejection under `## Outcome` with a note that it was reconsidered.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-triage
|
|
3
|
+
description: Move issues/PRs through the bc workflow intake state machine — verify, grill when needed, write agent briefs, mark ready-for-agent, or record rejected requests with their reason.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
argument-hint: "[issue/PR number or natural-language triage request]"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Triage for the bc loop
|
|
9
|
+
|
|
10
|
+
Turn messy issues, PRs, and bug reports into one of: needs more info, ready for a human, ready for `/bc-pipeline-to-done`, or rejected with durable rationale. This is the intake gate before the plan→issues→drain loop.
|
|
11
|
+
|
|
12
|
+
Every tracker comment you post during triage starts with:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
> *This was generated by AI during triage.*
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Where project files go
|
|
19
|
+
|
|
20
|
+
This skill names project files by role: the **glossary**, the **decisions** folder, the **work-dropped** folder and the **ideas** file. Resolve each role in the "Where things go" table in the project's `.bc-agent/AGENTS.md`. Why: each project has one table, so a project that keeps something elsewhere changes one place and every skill follows. When the project has no such table, use these paths instead:
|
|
21
|
+
|
|
22
|
+
- glossary: the Glossary section of `.bc-agent/project/overview.md` when it exists, otherwise `glossary.md`;
|
|
23
|
+
- decisions: `.bc-agent/decisions/` when it exists, otherwise `docs/adr/`;
|
|
24
|
+
- work-dropped: `.bc-agent/out-of-scope/`, one file per rejected concept;
|
|
25
|
+
- ideas: none; report the observation to the maintainer instead.
|
|
26
|
+
|
|
27
|
+
When the table exists, the work-item rules in the same `.bc-agent/AGENTS.md` govern how an item is named, numbered and moved. A project with the table has no `.bc-agent/out-of-scope/`; writing there would recreate a folder the project retired, so a rejection goes to work-dropped.
|
|
28
|
+
|
|
29
|
+
In a hybrid project the glossary is shared with `bc-teach`: follow the shared-glossary rule in `bc-domain-modeling` (ask before removing or redefining a term you did not add this session).
|
|
30
|
+
|
|
31
|
+
## States
|
|
32
|
+
|
|
33
|
+
Use the repo's configured label names if `.bc-agent/conventions/planning-workflow.md` or `docs/agents/triage-labels.md` maps them. When neither file exists (a visible-layout project generates no `planning-workflow.md`), use these canonical labels:
|
|
34
|
+
|
|
35
|
+
- `needs-triage` — maintainer needs to evaluate.
|
|
36
|
+
- `needs-info` — waiting on reporter.
|
|
37
|
+
- `ready-for-agent` — fully specified; an AFK agent can run from the issue + agent brief.
|
|
38
|
+
- `ready-for-human` — requires human judgment/access/manual work.
|
|
39
|
+
- `wontfix` — rejected or already implemented.
|
|
40
|
+
|
|
41
|
+
Category labels: `bug` or `enhancement` when available. A triaged item should have exactly one state label; if state labels conflict, flag it before changing anything.
|
|
42
|
+
|
|
43
|
+
## Show what needs attention
|
|
44
|
+
|
|
45
|
+
When invoked without a specific issue, query the issue tracker and show oldest-first buckets:
|
|
46
|
+
|
|
47
|
+
1. Unlabeled.
|
|
48
|
+
2. `needs-triage`.
|
|
49
|
+
3. `needs-info` with reporter activity since the last triage note.
|
|
50
|
+
|
|
51
|
+
Include external PRs only if the repo says PRs are a request surface. Let the user pick; don't batch-edit a queue unless asked.
|
|
52
|
+
|
|
53
|
+
## Triage one issue or PR
|
|
54
|
+
|
|
55
|
+
1. **Gather context.** Read the full issue/PR body, comments, labels, author, dates, and PR diff if applicable. Read the glossary, relevant records in the decisions folder, and prior triage notes.
|
|
56
|
+
2. **Check redundancy and prior rejection.** Search the codebase by domain concept for an existing implementation. Read the items in the work-dropped folder if present; surface any similar rejected request or dropped work. If qmd is installed and a global collection covers this repo's project knowledge (`qmd collection list`), `qmd query` the issue's domain terms too — it surfaces prior ADRs and rejections that exact-name greps miss.
|
|
57
|
+
3. **Verify the claim.** For a bug, reproduce or fail honestly. For a PR, check whether the diff does what it claims and run the relevant validation if bounded. A confirmed claim makes a stronger agent brief.
|
|
58
|
+
4. **Recommend.** Tell the maintainer: category, state, what you verified, and why. Wait for direction unless the user explicitly asked for autonomous triage.
|
|
59
|
+
5. **Grill if needed.** If the issue is close but underspecified, run `bc-grilling` + `bc-domain-modeling` to resolve missing decisions one question at a time. If it is broad enough to need a PRD/slices, send it to `/bc-plan-to-pipeline` instead of pretending one issue is enough.
|
|
60
|
+
6. **Apply outcome.**
|
|
61
|
+
- `ready-for-agent`: post an Agent Brief using [AGENT-BRIEF.md](AGENT-BRIEF.md); make acceptance criteria concrete enough for `/bc-pipeline-to-done`.
|
|
62
|
+
- `ready-for-human`: post the same structure, plus why it cannot be delegated.
|
|
63
|
+
- `needs-info`: post triage notes with established facts and specific questions.
|
|
64
|
+
- `wontfix` already implemented: close with a pointer to the existing behavior; do **not** record it in work-dropped. Why: that folder holds decisions not to build something, and an implemented feature recorded there would later read as a rejection.
|
|
65
|
+
- `wontfix` rejected enhancement: record it in the work-dropped folder with the reason, using [OUT-OF-SCOPE.md](OUT-OF-SCOPE.md), then comment and close; in a worktree, do not close the issue until the item exists. The reason is the point of the record: without it the next request for the same thing gets argued again from nothing.
|
|
66
|
+
|
|
67
|
+
## Quick override
|
|
68
|
+
|
|
69
|
+
If the maintainer says "move #42 to ready-for-agent", trust them about state, but still offer to write an Agent Brief if none exists. Do not send a bare, vague issue to `/bc-pipeline-to-done` without an explicit maintainer override.
|
|
70
|
+
|
|
71
|
+
## Handoff rules for `/bc-pipeline-to-done`
|
|
72
|
+
|
|
73
|
+
A `ready-for-agent` issue is drainable only when the latest Agent Brief has:
|
|
74
|
+
|
|
75
|
+
- Current behavior / desired behavior, or a clear equivalent for new work.
|
|
76
|
+
- Key interfaces or domain concepts without stale file/line instructions.
|
|
77
|
+
- Concrete acceptance criteria.
|
|
78
|
+
- Explicit out-of-scope boundaries.
|
|
79
|
+
- Blockers stated as `Blocked by #NN` when applicable.
|
|
80
|
+
|
|
81
|
+
For glossary discovery in legacy projects, follow `bc-domain-modeling`’s legacy glossary rule.
|