@c4a/context-cli 0.7.86 → 0.7.87
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/cli.js +4592 -2945
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +13 -12
- package/parserEntryWorker.js +10 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +17 -0
- package/plugins/claude/resources/context/source-checklist.md +120 -0
- package/plugins/claude/skills/context-plan/SKILL.md +8 -3
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +17 -0
- package/plugins/codex/skills/context/references/source-checklist.md +120 -0
- package/plugins/codex/skills/context-plan/SKILL.md +8 -3
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +17 -0
- package/plugins/cursor/resources/context/source-checklist.md +120 -0
- package/plugins/cursor/skills/context-plan/SKILL.md +8 -3
- package/plugins/skills/context/SKILL.md +17 -0
- package/plugins/skills/context/references/source-checklist.md +120 -0
- package/plugins/skills/context-plan/SKILL.md +8 -3
- package/providers/context/manifest.json +7 -7
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/package-outputs.md +12 -1
- package/providers/context/resources/manuals/reference/project-api.md +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.87",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local runtime and Agent integration for traceable knowledge production",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,19 +24,20 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@c4a/agent-graph": "0.3.0",
|
|
27
|
-
"@c4a/context": "0.7.
|
|
28
|
-
"@c4a/extract": "0.7.
|
|
29
|
-
"@c4a/extract-contract": "0.7.
|
|
30
|
-
"@c4a/extract-go": "0.7.
|
|
31
|
-
"@c4a/extract-mdx": "0.7.
|
|
32
|
-
"@c4a/extract-proto": "0.7.
|
|
33
|
-
"@c4a/extract-rush": "0.7.
|
|
34
|
-
"@c4a/extract-sql": "0.7.
|
|
35
|
-
"@c4a/extract-style": "0.7.
|
|
36
|
-
"@c4a/extract-thrift": "0.7.
|
|
37
|
-
"@c4a/extract-ts": "0.7.
|
|
27
|
+
"@c4a/context": "0.7.87",
|
|
28
|
+
"@c4a/extract": "0.7.87",
|
|
29
|
+
"@c4a/extract-contract": "0.7.87",
|
|
30
|
+
"@c4a/extract-go": "0.7.87",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.87",
|
|
32
|
+
"@c4a/extract-proto": "0.7.87",
|
|
33
|
+
"@c4a/extract-rush": "0.7.87",
|
|
34
|
+
"@c4a/extract-sql": "0.7.87",
|
|
35
|
+
"@c4a/extract-style": "0.7.87",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.87",
|
|
37
|
+
"@c4a/extract-ts": "0.7.87",
|
|
38
38
|
"@mermaid-js/layout-elk": "0.2.0",
|
|
39
39
|
"commander": "^11.0.0",
|
|
40
|
+
"d3-force": "3.0.0",
|
|
40
41
|
"fast-xml-parser": "^5.10.1",
|
|
41
42
|
"handlebars": "^4.7.8",
|
|
42
43
|
"ink": "^5.0.0",
|
package/parserEntryWorker.js
CHANGED
|
@@ -514,6 +514,7 @@ async function readCommandDirectory(path) {
|
|
|
514
514
|
const entries = await reuseCommandFileRead({
|
|
515
515
|
key: "directory-entries",
|
|
516
516
|
paths: [path],
|
|
517
|
+
racyWindow: true,
|
|
517
518
|
read: () => readdir(path, { withFileTypes: true })
|
|
518
519
|
});
|
|
519
520
|
return [...entries];
|
|
@@ -528,16 +529,21 @@ async function reuseCommandFileRead(input) {
|
|
|
528
529
|
const paths = input.paths.map((path) => resolve2(path));
|
|
529
530
|
const key = JSON.stringify([input.key, paths]);
|
|
530
531
|
let stamp;
|
|
532
|
+
let racy = false;
|
|
531
533
|
try {
|
|
534
|
+
const takenNs = BigInt(Date.now()) * 1000000n;
|
|
532
535
|
stamp = JSON.stringify(await Promise.all(paths.map(async (path) => {
|
|
533
536
|
const file = await stat(path, { bigint: true });
|
|
537
|
+
if (input.racyWindow && file.mtimeNs + RACY_WINDOW_NS > takenNs)
|
|
538
|
+
racy = true;
|
|
534
539
|
return [file.dev, file.ino, file.size, file.mtimeNs, file.ctimeNs].map(String);
|
|
535
540
|
})));
|
|
536
541
|
} catch {
|
|
537
542
|
cache.delete(key);
|
|
538
543
|
return input.read();
|
|
539
544
|
}
|
|
540
|
-
const
|
|
545
|
+
const cached = cache.get(key);
|
|
546
|
+
const previous = cached?.racy ? undefined : cached;
|
|
541
547
|
const projectRoot = currentDebugProjectRoot();
|
|
542
548
|
if (projectRoot)
|
|
543
549
|
await recordContextDebugPerformance({
|
|
@@ -559,7 +565,7 @@ async function reuseCommandFileRead(input) {
|
|
|
559
565
|
cache.delete(key);
|
|
560
566
|
if (cache.size >= MAX_READS)
|
|
561
567
|
cache.delete(cache.keys().next().value);
|
|
562
|
-
const entry = { stamp, value };
|
|
568
|
+
const entry = { stamp, racy, value };
|
|
563
569
|
cache.set(key, entry);
|
|
564
570
|
try {
|
|
565
571
|
const resolved = await value;
|
|
@@ -579,7 +585,7 @@ function reuseCommandValue(key, calculate) {
|
|
|
579
585
|
const cache = commandValues.getStore();
|
|
580
586
|
return cache ? cache.get(key, calculate) : calculate();
|
|
581
587
|
}
|
|
582
|
-
var commandReads, MAX_READS = 64, commandValues;
|
|
588
|
+
var commandReads, MAX_READS = 64, RACY_WINDOW_NS = 1000000000n, commandValues;
|
|
583
589
|
var init_commandReadCache = __esm(() => {
|
|
584
590
|
init_debugTrace();
|
|
585
591
|
commandReads = new AsyncLocalStorage2;
|
|
@@ -4640,6 +4646,7 @@ var init_packageSite = __esm(() => {
|
|
|
4640
4646
|
nav: exports_external.array(packageSiteNavLinkSchema).optional(),
|
|
4641
4647
|
more: exports_external.array(packageSiteMoreItemSchema).optional(),
|
|
4642
4648
|
socialLinks: exports_external.array(packageSiteSocialLinkSchema).optional(),
|
|
4649
|
+
sourceMap: exports_external.boolean().optional(),
|
|
4643
4650
|
localePreferenceKey: exports_external.string().regex(/^[a-zA-Z0-9:._-]+$/u).optional(),
|
|
4644
4651
|
extensions: exports_external.object({
|
|
4645
4652
|
root: exports_external.string().regex(/^src\/(?:[a-zA-Z0-9_-]+\/)*[a-zA-Z0-9_-]+$/).default("src/site"),
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.87
|
|
@@ -240,6 +240,23 @@ Within an active Context workflow, requests include, but are not limited to:
|
|
|
240
240
|
| Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
|
|
241
241
|
| Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
|
|
242
242
|
|
|
243
|
+
### A prepared source checklist
|
|
244
|
+
|
|
245
|
+
A reader may arrive with a filled checklist — a page listing the material, its
|
|
246
|
+
owners and whether the knowledge depends on it — instead of describing sources
|
|
247
|
+
in conversation. Read it and register from it. Never require one: material
|
|
248
|
+
described in conversation is equally valid. A team that wants a starting point
|
|
249
|
+
can copy [the source checklist](../resources/context/source-checklist.md).
|
|
250
|
+
|
|
251
|
+
- One row is one source, and the row's note becomes the source note.
|
|
252
|
+
- The dependency column decides the treatment: a row marked as a dependency is
|
|
253
|
+
registered and pinned to a commit or version, so later changes reach the pages
|
|
254
|
+
that rest on it; a first-time reference is read for this round and cited in the
|
|
255
|
+
text, not registered.
|
|
256
|
+
- The owner named on a row is who to ask when a link fails or ownership is
|
|
257
|
+
unclear, instead of guessing.
|
|
258
|
+
- Report rows you cannot open or are not allowed to read; never drop one silently.
|
|
259
|
+
|
|
243
260
|
### Where each request goes
|
|
244
261
|
|
|
245
262
|
- **Sources, notes, sessions or changed upstream material:** read
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Source checklist
|
|
2
|
+
|
|
3
|
+
A page a team fills in before a knowledge base is built, so the Agent starts from
|
|
4
|
+
a list instead of a conversation. It is optional: material described in
|
|
5
|
+
conversation is registered the same way.
|
|
6
|
+
|
|
7
|
+
Copy the template below, delete the groups you do not need, replace the example
|
|
8
|
+
rows, and give the Agent the page's link.
|
|
9
|
+
|
|
10
|
+
## How to fill it in
|
|
11
|
+
|
|
12
|
+
1. Keep one row per source, and write the link's text as the material's name.
|
|
13
|
+
2. Every row needs a link that opens and a single owner.
|
|
14
|
+
3. Choose one update dependency per row; the note at the end explains the two.
|
|
15
|
+
4. Leave a row in with "to confirm" after the owner when you are unsure it belongs.
|
|
16
|
+
|
|
17
|
+
## Sources
|
|
18
|
+
|
|
19
|
+
### Code repositories
|
|
20
|
+
|
|
21
|
+
The repositories the knowledge is about and the ones it directly depends on.
|
|
22
|
+
Registered repositories are pinned to a commit and compared by diff later.
|
|
23
|
+
|
|
24
|
+
| Link | What it is | Owner | Update dependency |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| [example-org/billing-service](https://example.com/example-org/billing-service) | The service the knowledge describes | A. Rivera | Registered as a dependency |
|
|
27
|
+
| [example-org/billing-sdk](https://example.com/example-org/billing-sdk) | Client the service's callers use | B. Osei | Registered as a dependency |
|
|
28
|
+
|
|
29
|
+
### Skills and plugins
|
|
30
|
+
|
|
31
|
+
The Skills a workflow actually calls. Record the identifier and version; when the
|
|
32
|
+
version moves, the knowledge is rechecked.
|
|
33
|
+
|
|
34
|
+
| Link | What it is | Owner | Update dependency |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| [invoice-report-gen v1.4.0](https://example.com/skills/invoice-report-gen) | Generates the reports the guides describe | B. Osei | Registered as a dependency |
|
|
37
|
+
| [billing-metrics v0.9.2](https://example.com/skills/billing-metrics) | Collects the numbers quoted in the reference | C. Hart | Registered as a dependency |
|
|
38
|
+
|
|
39
|
+
### Documents
|
|
40
|
+
|
|
41
|
+
Design documents, specifications and one-pagers that have settled. Drafts and
|
|
42
|
+
open proposals are left out.
|
|
43
|
+
|
|
44
|
+
| Link | What it is | Owner | Update dependency |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| [Billing settlement design](https://example.com/docs/billing-settlement) | Goals and division of work; the basis for the guides | A. Rivera | Registered as a dependency |
|
|
47
|
+
| [Billing FAQ](https://example.com/docs/billing-faq) | Past questions, used to fill the reference pages | C. Hart | First-time reference |
|
|
48
|
+
|
|
49
|
+
### Conversations
|
|
50
|
+
|
|
51
|
+
Troubleshooting or design discussions that reached a conclusion. Write them up as
|
|
52
|
+
one note first, then list the note.
|
|
53
|
+
|
|
54
|
+
| Link | What it is | Owner | Update dependency |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| [Settlement incident, 2026-03-18](https://example.com/notes/settlement-incident) | How one production problem was found and fixed | C. Hart | First-time reference |
|
|
57
|
+
| [Scope discussion](https://example.com/notes/billing-scope) | Which repositories belong to this topic | A. Rivera | First-time reference |
|
|
58
|
+
|
|
59
|
+
### Platforms and live sites
|
|
60
|
+
|
|
61
|
+
Consoles, dashboards or published sites the pages need to cite.
|
|
62
|
+
|
|
63
|
+
| Link | What it is | Owner | Update dependency |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
| [Billing console](https://example.com/console/billing) | Where operators do the work the guides describe | D. Lindqvist | Registered as a dependency |
|
|
66
|
+
| [Existing handbook](https://example.com/handbook/billing) | Already published, so it is not written twice | D. Lindqvist | First-time reference |
|
|
67
|
+
|
|
68
|
+
### Notes and attachments
|
|
69
|
+
|
|
70
|
+
Weekly reports, retrospectives and screenshots. They fold into the guides and
|
|
71
|
+
reference rather than becoming topics of their own.
|
|
72
|
+
|
|
73
|
+
| Link | What it is | Owner | Update dependency |
|
|
74
|
+
| --- | --- | --- | --- |
|
|
75
|
+
| [2026-03 billing weekly](https://example.com/notes/billing-weekly) | Progress, useful as background | B. Osei | First-time reference |
|
|
76
|
+
| [Release retrospective](https://example.com/notes/billing-retro) | Pitfalls, written into the FAQ | A. Rivera | First-time reference |
|
|
77
|
+
|
|
78
|
+
> **Update dependency**: *Registered as a dependency* = when the source changes,
|
|
79
|
+
> the pages resting on it are rechecked and revised; it stays anchored to a commit
|
|
80
|
+
> or version. *First-time reference* = read while writing this round and cited in
|
|
81
|
+
> the text; later updates do not come back to it.
|
|
82
|
+
|
|
83
|
+
## Structure
|
|
84
|
+
|
|
85
|
+
Keep the directory closest to the knowledge base you are building, delete the
|
|
86
|
+
rest, then add or drop levels.
|
|
87
|
+
|
|
88
|
+
- **Product or service knowledge base** — Overview; Getting started; Solutions by
|
|
89
|
+
scenario; Guides for the workflow, integration and release; Reference for
|
|
90
|
+
commands, fields and FAQ.
|
|
91
|
+
- **External manual for a platform** — Overview; Getting started with access;
|
|
92
|
+
Solutions by use case; Guides for daily operation and troubleshooting;
|
|
93
|
+
Reference for APIs, configuration and limits.
|
|
94
|
+
- **External manual for a tool** — Overview; Getting started with install and
|
|
95
|
+
first output; Guides for each workflow; How it works; Reference; Release notes.
|
|
96
|
+
- **On-call knowledge base** — Duty basics; Common problems by component;
|
|
97
|
+
Troubleshooting from symptom to action; Contacts and escalation; Past cases.
|
|
98
|
+
- **Business knowledge base** — Business overview; Terms and rules; End-to-end
|
|
99
|
+
flow; Common questions; Change log.
|
|
100
|
+
|
|
101
|
+
## Start-up prompt
|
|
102
|
+
|
|
103
|
+
Adjust it, then send it with the checklist's link.
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
I own <team / knowledge base>. Research and initialise the knowledge workspace
|
|
107
|
+
from this checklist and produce the first round of knowledge. Keep to the
|
|
108
|
+
material listed here; ask me before bringing in anything else.
|
|
109
|
+
1. Check every link opens; register the rows marked as a dependency as sources,
|
|
110
|
+
pinning repositories to the current commit and recording Skill versions. List
|
|
111
|
+
anything you cannot open or are not allowed to read
|
|
112
|
+
2. Ask me about missing links, missing owners or unclear ownership; where someone
|
|
113
|
+
else has to confirm, reach the owner named on the row
|
|
114
|
+
3. Once you have read the sources, plan the directory against the structure kept
|
|
115
|
+
above; raise a better split with me first if you see one
|
|
116
|
+
4. Write in batches only after I confirm the directory, and keep every claim
|
|
117
|
+
traceable to its source
|
|
118
|
+
5. When writing is done, produce a diff report for my review; publish only after
|
|
119
|
+
it passes
|
|
120
|
+
```
|
|
@@ -37,7 +37,12 @@ an audience enters production; do not count registration as completed research.
|
|
|
37
37
|
1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
|
|
38
38
|
Reuse a matching plan. Inspect its current stage, permissions and pending work
|
|
39
39
|
before expanding research; do not reset a live Context workflow.
|
|
40
|
-
2.
|
|
40
|
+
2. Ask once whether a prepared source checklist exists for this project, and take
|
|
41
|
+
its link if so: a filled checklist names each source, its owner and whether the
|
|
42
|
+
knowledge depends on it, which shortens inventory. The `context` Skill carries
|
|
43
|
+
a template under `references/source-checklist.md`. It is never required —
|
|
44
|
+
without one, continue and register material from the conversation.
|
|
45
|
+
3. Read [project-planning.md](references/project-planning.md). Review the existing
|
|
41
46
|
knowledge workspace and relevant approved articles before grouping new material.
|
|
42
47
|
Map overlaps, gaps and relationships between documents, repositories and pages;
|
|
43
48
|
distinguish reuse, revision, consolidation and new coverage in the PLAN.
|
|
@@ -48,11 +53,11 @@ an audience enters production; do not count registration as completed research.
|
|
|
48
53
|
evidence already available; do not wait for a complete PLAN. Follow the early
|
|
49
54
|
scope rules in project-planning.md, including previously confirmed choices.
|
|
50
55
|
Reuse accessible local checkouts and saved research before fetching again.
|
|
51
|
-
|
|
56
|
+
4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
|
|
52
57
|
[the report template](templates/PLAN.md). Keep downloaded research under
|
|
53
58
|
`.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
|
|
54
59
|
not a new CLI validation rule.
|
|
55
|
-
|
|
60
|
+
5. Present the first report and complete its review before production. By default,
|
|
56
61
|
obtain the user's approval; only an authorized `plan_review: delegate` override
|
|
57
62
|
permits Agent review as described below.
|
|
58
63
|
Resolve the reporting preference: report after all stages, or after each
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.87",
|
|
4
4
|
"description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
|
|
5
5
|
"author": { "name": "c4a" },
|
|
6
6
|
"homepage": "https://github.com/context4ai/c4a",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"skills": "./skills/",
|
|
11
11
|
"interface": {
|
|
12
12
|
"displayName": "C4A Context",
|
|
13
|
-
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.
|
|
13
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.87",
|
|
14
14
|
"longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.",
|
|
15
15
|
"developerName": "c4a",
|
|
16
16
|
"category": "Productivity",
|
|
@@ -238,6 +238,23 @@ Within an active Context workflow, requests include, but are not limited to:
|
|
|
238
238
|
| Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
|
|
239
239
|
| Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
|
|
240
240
|
|
|
241
|
+
### A prepared source checklist
|
|
242
|
+
|
|
243
|
+
A reader may arrive with a filled checklist — a page listing the material, its
|
|
244
|
+
owners and whether the knowledge depends on it — instead of describing sources
|
|
245
|
+
in conversation. Read it and register from it. Never require one: material
|
|
246
|
+
described in conversation is equally valid. A team that wants a starting point
|
|
247
|
+
can copy [the source checklist](references/source-checklist.md).
|
|
248
|
+
|
|
249
|
+
- One row is one source, and the row's note becomes the source note.
|
|
250
|
+
- The dependency column decides the treatment: a row marked as a dependency is
|
|
251
|
+
registered and pinned to a commit or version, so later changes reach the pages
|
|
252
|
+
that rest on it; a first-time reference is read for this round and cited in the
|
|
253
|
+
text, not registered.
|
|
254
|
+
- The owner named on a row is who to ask when a link fails or ownership is
|
|
255
|
+
unclear, instead of guessing.
|
|
256
|
+
- Report rows you cannot open or are not allowed to read; never drop one silently.
|
|
257
|
+
|
|
241
258
|
### Where each request goes
|
|
242
259
|
|
|
243
260
|
- **Sources, notes, sessions or changed upstream material:** read
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Source checklist
|
|
2
|
+
|
|
3
|
+
A page a team fills in before a knowledge base is built, so the Agent starts from
|
|
4
|
+
a list instead of a conversation. It is optional: material described in
|
|
5
|
+
conversation is registered the same way.
|
|
6
|
+
|
|
7
|
+
Copy the template below, delete the groups you do not need, replace the example
|
|
8
|
+
rows, and give the Agent the page's link.
|
|
9
|
+
|
|
10
|
+
## How to fill it in
|
|
11
|
+
|
|
12
|
+
1. Keep one row per source, and write the link's text as the material's name.
|
|
13
|
+
2. Every row needs a link that opens and a single owner.
|
|
14
|
+
3. Choose one update dependency per row; the note at the end explains the two.
|
|
15
|
+
4. Leave a row in with "to confirm" after the owner when you are unsure it belongs.
|
|
16
|
+
|
|
17
|
+
## Sources
|
|
18
|
+
|
|
19
|
+
### Code repositories
|
|
20
|
+
|
|
21
|
+
The repositories the knowledge is about and the ones it directly depends on.
|
|
22
|
+
Registered repositories are pinned to a commit and compared by diff later.
|
|
23
|
+
|
|
24
|
+
| Link | What it is | Owner | Update dependency |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| [example-org/billing-service](https://example.com/example-org/billing-service) | The service the knowledge describes | A. Rivera | Registered as a dependency |
|
|
27
|
+
| [example-org/billing-sdk](https://example.com/example-org/billing-sdk) | Client the service's callers use | B. Osei | Registered as a dependency |
|
|
28
|
+
|
|
29
|
+
### Skills and plugins
|
|
30
|
+
|
|
31
|
+
The Skills a workflow actually calls. Record the identifier and version; when the
|
|
32
|
+
version moves, the knowledge is rechecked.
|
|
33
|
+
|
|
34
|
+
| Link | What it is | Owner | Update dependency |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| [invoice-report-gen v1.4.0](https://example.com/skills/invoice-report-gen) | Generates the reports the guides describe | B. Osei | Registered as a dependency |
|
|
37
|
+
| [billing-metrics v0.9.2](https://example.com/skills/billing-metrics) | Collects the numbers quoted in the reference | C. Hart | Registered as a dependency |
|
|
38
|
+
|
|
39
|
+
### Documents
|
|
40
|
+
|
|
41
|
+
Design documents, specifications and one-pagers that have settled. Drafts and
|
|
42
|
+
open proposals are left out.
|
|
43
|
+
|
|
44
|
+
| Link | What it is | Owner | Update dependency |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| [Billing settlement design](https://example.com/docs/billing-settlement) | Goals and division of work; the basis for the guides | A. Rivera | Registered as a dependency |
|
|
47
|
+
| [Billing FAQ](https://example.com/docs/billing-faq) | Past questions, used to fill the reference pages | C. Hart | First-time reference |
|
|
48
|
+
|
|
49
|
+
### Conversations
|
|
50
|
+
|
|
51
|
+
Troubleshooting or design discussions that reached a conclusion. Write them up as
|
|
52
|
+
one note first, then list the note.
|
|
53
|
+
|
|
54
|
+
| Link | What it is | Owner | Update dependency |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| [Settlement incident, 2026-03-18](https://example.com/notes/settlement-incident) | How one production problem was found and fixed | C. Hart | First-time reference |
|
|
57
|
+
| [Scope discussion](https://example.com/notes/billing-scope) | Which repositories belong to this topic | A. Rivera | First-time reference |
|
|
58
|
+
|
|
59
|
+
### Platforms and live sites
|
|
60
|
+
|
|
61
|
+
Consoles, dashboards or published sites the pages need to cite.
|
|
62
|
+
|
|
63
|
+
| Link | What it is | Owner | Update dependency |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
| [Billing console](https://example.com/console/billing) | Where operators do the work the guides describe | D. Lindqvist | Registered as a dependency |
|
|
66
|
+
| [Existing handbook](https://example.com/handbook/billing) | Already published, so it is not written twice | D. Lindqvist | First-time reference |
|
|
67
|
+
|
|
68
|
+
### Notes and attachments
|
|
69
|
+
|
|
70
|
+
Weekly reports, retrospectives and screenshots. They fold into the guides and
|
|
71
|
+
reference rather than becoming topics of their own.
|
|
72
|
+
|
|
73
|
+
| Link | What it is | Owner | Update dependency |
|
|
74
|
+
| --- | --- | --- | --- |
|
|
75
|
+
| [2026-03 billing weekly](https://example.com/notes/billing-weekly) | Progress, useful as background | B. Osei | First-time reference |
|
|
76
|
+
| [Release retrospective](https://example.com/notes/billing-retro) | Pitfalls, written into the FAQ | A. Rivera | First-time reference |
|
|
77
|
+
|
|
78
|
+
> **Update dependency**: *Registered as a dependency* = when the source changes,
|
|
79
|
+
> the pages resting on it are rechecked and revised; it stays anchored to a commit
|
|
80
|
+
> or version. *First-time reference* = read while writing this round and cited in
|
|
81
|
+
> the text; later updates do not come back to it.
|
|
82
|
+
|
|
83
|
+
## Structure
|
|
84
|
+
|
|
85
|
+
Keep the directory closest to the knowledge base you are building, delete the
|
|
86
|
+
rest, then add or drop levels.
|
|
87
|
+
|
|
88
|
+
- **Product or service knowledge base** — Overview; Getting started; Solutions by
|
|
89
|
+
scenario; Guides for the workflow, integration and release; Reference for
|
|
90
|
+
commands, fields and FAQ.
|
|
91
|
+
- **External manual for a platform** — Overview; Getting started with access;
|
|
92
|
+
Solutions by use case; Guides for daily operation and troubleshooting;
|
|
93
|
+
Reference for APIs, configuration and limits.
|
|
94
|
+
- **External manual for a tool** — Overview; Getting started with install and
|
|
95
|
+
first output; Guides for each workflow; How it works; Reference; Release notes.
|
|
96
|
+
- **On-call knowledge base** — Duty basics; Common problems by component;
|
|
97
|
+
Troubleshooting from symptom to action; Contacts and escalation; Past cases.
|
|
98
|
+
- **Business knowledge base** — Business overview; Terms and rules; End-to-end
|
|
99
|
+
flow; Common questions; Change log.
|
|
100
|
+
|
|
101
|
+
## Start-up prompt
|
|
102
|
+
|
|
103
|
+
Adjust it, then send it with the checklist's link.
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
I own <team / knowledge base>. Research and initialise the knowledge workspace
|
|
107
|
+
from this checklist and produce the first round of knowledge. Keep to the
|
|
108
|
+
material listed here; ask me before bringing in anything else.
|
|
109
|
+
1. Check every link opens; register the rows marked as a dependency as sources,
|
|
110
|
+
pinning repositories to the current commit and recording Skill versions. List
|
|
111
|
+
anything you cannot open or are not allowed to read
|
|
112
|
+
2. Ask me about missing links, missing owners or unclear ownership; where someone
|
|
113
|
+
else has to confirm, reach the owner named on the row
|
|
114
|
+
3. Once you have read the sources, plan the directory against the structure kept
|
|
115
|
+
above; raise a better split with me first if you see one
|
|
116
|
+
4. Write in batches only after I confirm the directory, and keep every claim
|
|
117
|
+
traceable to its source
|
|
118
|
+
5. When writing is done, produce a diff report for my review; publish only after
|
|
119
|
+
it passes
|
|
120
|
+
```
|
|
@@ -36,7 +36,12 @@ an audience enters production; do not count registration as completed research.
|
|
|
36
36
|
1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
|
|
37
37
|
Reuse a matching plan. Inspect its current stage, permissions and pending work
|
|
38
38
|
before expanding research; do not reset a live Context workflow.
|
|
39
|
-
2.
|
|
39
|
+
2. Ask once whether a prepared source checklist exists for this project, and take
|
|
40
|
+
its link if so: a filled checklist names each source, its owner and whether the
|
|
41
|
+
knowledge depends on it, which shortens inventory. The `context` Skill carries
|
|
42
|
+
a template under `references/source-checklist.md`. It is never required —
|
|
43
|
+
without one, continue and register material from the conversation.
|
|
44
|
+
3. Read [project-planning.md](references/project-planning.md). Review the existing
|
|
40
45
|
knowledge workspace and relevant approved articles before grouping new material.
|
|
41
46
|
Map overlaps, gaps and relationships between documents, repositories and pages;
|
|
42
47
|
distinguish reuse, revision, consolidation and new coverage in the PLAN.
|
|
@@ -47,11 +52,11 @@ an audience enters production; do not count registration as completed research.
|
|
|
47
52
|
evidence already available; do not wait for a complete PLAN. Follow the early
|
|
48
53
|
scope rules in project-planning.md, including previously confirmed choices.
|
|
49
54
|
Reuse accessible local checkouts and saved research before fetching again.
|
|
50
|
-
|
|
55
|
+
4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
|
|
51
56
|
[the report template](templates/PLAN.md). Keep downloaded research under
|
|
52
57
|
`.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
|
|
53
58
|
not a new CLI validation rule.
|
|
54
|
-
|
|
59
|
+
5. Present the first report and complete its review before production. By default,
|
|
55
60
|
obtain the user's approval; only an authorized `plan_review: delegate` override
|
|
56
61
|
permits Agent review as described below.
|
|
57
62
|
Resolve the reporting preference: report after all stages, or after each
|
|
@@ -235,6 +235,23 @@ Within an active Context workflow, requests include, but are not limited to:
|
|
|
235
235
|
| Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
|
|
236
236
|
| Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
|
|
237
237
|
|
|
238
|
+
### A prepared source checklist
|
|
239
|
+
|
|
240
|
+
A reader may arrive with a filled checklist — a page listing the material, its
|
|
241
|
+
owners and whether the knowledge depends on it — instead of describing sources
|
|
242
|
+
in conversation. Read it and register from it. Never require one: material
|
|
243
|
+
described in conversation is equally valid. A team that wants a starting point
|
|
244
|
+
can copy [the source checklist](../resources/context/source-checklist.md).
|
|
245
|
+
|
|
246
|
+
- One row is one source, and the row's note becomes the source note.
|
|
247
|
+
- The dependency column decides the treatment: a row marked as a dependency is
|
|
248
|
+
registered and pinned to a commit or version, so later changes reach the pages
|
|
249
|
+
that rest on it; a first-time reference is read for this round and cited in the
|
|
250
|
+
text, not registered.
|
|
251
|
+
- The owner named on a row is who to ask when a link fails or ownership is
|
|
252
|
+
unclear, instead of guessing.
|
|
253
|
+
- Report rows you cannot open or are not allowed to read; never drop one silently.
|
|
254
|
+
|
|
238
255
|
### Where each request goes
|
|
239
256
|
|
|
240
257
|
- **Sources, notes, sessions or changed upstream material:** read
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Source checklist
|
|
2
|
+
|
|
3
|
+
A page a team fills in before a knowledge base is built, so the Agent starts from
|
|
4
|
+
a list instead of a conversation. It is optional: material described in
|
|
5
|
+
conversation is registered the same way.
|
|
6
|
+
|
|
7
|
+
Copy the template below, delete the groups you do not need, replace the example
|
|
8
|
+
rows, and give the Agent the page's link.
|
|
9
|
+
|
|
10
|
+
## How to fill it in
|
|
11
|
+
|
|
12
|
+
1. Keep one row per source, and write the link's text as the material's name.
|
|
13
|
+
2. Every row needs a link that opens and a single owner.
|
|
14
|
+
3. Choose one update dependency per row; the note at the end explains the two.
|
|
15
|
+
4. Leave a row in with "to confirm" after the owner when you are unsure it belongs.
|
|
16
|
+
|
|
17
|
+
## Sources
|
|
18
|
+
|
|
19
|
+
### Code repositories
|
|
20
|
+
|
|
21
|
+
The repositories the knowledge is about and the ones it directly depends on.
|
|
22
|
+
Registered repositories are pinned to a commit and compared by diff later.
|
|
23
|
+
|
|
24
|
+
| Link | What it is | Owner | Update dependency |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| [example-org/billing-service](https://example.com/example-org/billing-service) | The service the knowledge describes | A. Rivera | Registered as a dependency |
|
|
27
|
+
| [example-org/billing-sdk](https://example.com/example-org/billing-sdk) | Client the service's callers use | B. Osei | Registered as a dependency |
|
|
28
|
+
|
|
29
|
+
### Skills and plugins
|
|
30
|
+
|
|
31
|
+
The Skills a workflow actually calls. Record the identifier and version; when the
|
|
32
|
+
version moves, the knowledge is rechecked.
|
|
33
|
+
|
|
34
|
+
| Link | What it is | Owner | Update dependency |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| [invoice-report-gen v1.4.0](https://example.com/skills/invoice-report-gen) | Generates the reports the guides describe | B. Osei | Registered as a dependency |
|
|
37
|
+
| [billing-metrics v0.9.2](https://example.com/skills/billing-metrics) | Collects the numbers quoted in the reference | C. Hart | Registered as a dependency |
|
|
38
|
+
|
|
39
|
+
### Documents
|
|
40
|
+
|
|
41
|
+
Design documents, specifications and one-pagers that have settled. Drafts and
|
|
42
|
+
open proposals are left out.
|
|
43
|
+
|
|
44
|
+
| Link | What it is | Owner | Update dependency |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| [Billing settlement design](https://example.com/docs/billing-settlement) | Goals and division of work; the basis for the guides | A. Rivera | Registered as a dependency |
|
|
47
|
+
| [Billing FAQ](https://example.com/docs/billing-faq) | Past questions, used to fill the reference pages | C. Hart | First-time reference |
|
|
48
|
+
|
|
49
|
+
### Conversations
|
|
50
|
+
|
|
51
|
+
Troubleshooting or design discussions that reached a conclusion. Write them up as
|
|
52
|
+
one note first, then list the note.
|
|
53
|
+
|
|
54
|
+
| Link | What it is | Owner | Update dependency |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| [Settlement incident, 2026-03-18](https://example.com/notes/settlement-incident) | How one production problem was found and fixed | C. Hart | First-time reference |
|
|
57
|
+
| [Scope discussion](https://example.com/notes/billing-scope) | Which repositories belong to this topic | A. Rivera | First-time reference |
|
|
58
|
+
|
|
59
|
+
### Platforms and live sites
|
|
60
|
+
|
|
61
|
+
Consoles, dashboards or published sites the pages need to cite.
|
|
62
|
+
|
|
63
|
+
| Link | What it is | Owner | Update dependency |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
| [Billing console](https://example.com/console/billing) | Where operators do the work the guides describe | D. Lindqvist | Registered as a dependency |
|
|
66
|
+
| [Existing handbook](https://example.com/handbook/billing) | Already published, so it is not written twice | D. Lindqvist | First-time reference |
|
|
67
|
+
|
|
68
|
+
### Notes and attachments
|
|
69
|
+
|
|
70
|
+
Weekly reports, retrospectives and screenshots. They fold into the guides and
|
|
71
|
+
reference rather than becoming topics of their own.
|
|
72
|
+
|
|
73
|
+
| Link | What it is | Owner | Update dependency |
|
|
74
|
+
| --- | --- | --- | --- |
|
|
75
|
+
| [2026-03 billing weekly](https://example.com/notes/billing-weekly) | Progress, useful as background | B. Osei | First-time reference |
|
|
76
|
+
| [Release retrospective](https://example.com/notes/billing-retro) | Pitfalls, written into the FAQ | A. Rivera | First-time reference |
|
|
77
|
+
|
|
78
|
+
> **Update dependency**: *Registered as a dependency* = when the source changes,
|
|
79
|
+
> the pages resting on it are rechecked and revised; it stays anchored to a commit
|
|
80
|
+
> or version. *First-time reference* = read while writing this round and cited in
|
|
81
|
+
> the text; later updates do not come back to it.
|
|
82
|
+
|
|
83
|
+
## Structure
|
|
84
|
+
|
|
85
|
+
Keep the directory closest to the knowledge base you are building, delete the
|
|
86
|
+
rest, then add or drop levels.
|
|
87
|
+
|
|
88
|
+
- **Product or service knowledge base** — Overview; Getting started; Solutions by
|
|
89
|
+
scenario; Guides for the workflow, integration and release; Reference for
|
|
90
|
+
commands, fields and FAQ.
|
|
91
|
+
- **External manual for a platform** — Overview; Getting started with access;
|
|
92
|
+
Solutions by use case; Guides for daily operation and troubleshooting;
|
|
93
|
+
Reference for APIs, configuration and limits.
|
|
94
|
+
- **External manual for a tool** — Overview; Getting started with install and
|
|
95
|
+
first output; Guides for each workflow; How it works; Reference; Release notes.
|
|
96
|
+
- **On-call knowledge base** — Duty basics; Common problems by component;
|
|
97
|
+
Troubleshooting from symptom to action; Contacts and escalation; Past cases.
|
|
98
|
+
- **Business knowledge base** — Business overview; Terms and rules; End-to-end
|
|
99
|
+
flow; Common questions; Change log.
|
|
100
|
+
|
|
101
|
+
## Start-up prompt
|
|
102
|
+
|
|
103
|
+
Adjust it, then send it with the checklist's link.
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
I own <team / knowledge base>. Research and initialise the knowledge workspace
|
|
107
|
+
from this checklist and produce the first round of knowledge. Keep to the
|
|
108
|
+
material listed here; ask me before bringing in anything else.
|
|
109
|
+
1. Check every link opens; register the rows marked as a dependency as sources,
|
|
110
|
+
pinning repositories to the current commit and recording Skill versions. List
|
|
111
|
+
anything you cannot open or are not allowed to read
|
|
112
|
+
2. Ask me about missing links, missing owners or unclear ownership; where someone
|
|
113
|
+
else has to confirm, reach the owner named on the row
|
|
114
|
+
3. Once you have read the sources, plan the directory against the structure kept
|
|
115
|
+
above; raise a better split with me first if you see one
|
|
116
|
+
4. Write in batches only after I confirm the directory, and keep every claim
|
|
117
|
+
traceable to its source
|
|
118
|
+
5. When writing is done, produce a diff report for my review; publish only after
|
|
119
|
+
it passes
|
|
120
|
+
```
|