codebyplan 1.13.29 → 1.13.30

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.
Files changed (26) hide show
  1. package/dist/cli.js +728 -18
  2. package/package.json +1 -1
  3. package/templates/README.md +16 -13
  4. package/templates/agents/cbp-cc-executor.md +6 -9
  5. package/templates/agents/cbp-round-executor.md +1 -2
  6. package/templates/rules/README.md +13 -8
  7. package/templates/rules/cbp-operating-gotchas.md +64 -0
  8. package/templates/settings.project.base.json +0 -1
  9. package/templates/skills/cbp-build-cc-agent/SKILL.md +3 -4
  10. package/templates/skills/cbp-build-cc-agent/examples/with-skills-preload.md +2 -3
  11. package/templates/skills/cbp-build-cc-agent/reference/frontmatter-fields.md +0 -1
  12. package/templates/skills/cbp-build-cc-agent/scripts/validate-agent.sh +0 -6
  13. package/templates/skills/cbp-build-cc-agent/templates/agent.md +1 -2
  14. package/templates/skills/cbp-build-cc-claude-file/SKILL.md +16 -2
  15. package/templates/skills/cbp-build-cc-claude-file/reference/what-belongs.md +1 -1
  16. package/templates/skills/cbp-build-cc-mode/SKILL.md +1 -1
  17. package/templates/skills/cbp-build-cc-rule/SKILL.md +2 -2
  18. package/templates/skills/cbp-build-cc-memory/SKILL.md +0 -201
  19. package/templates/skills/cbp-build-cc-memory/examples/feedback-memory.md +0 -11
  20. package/templates/skills/cbp-build-cc-memory/examples/project-memory.md +0 -11
  21. package/templates/skills/cbp-build-cc-memory/examples/reference-memory.md +0 -13
  22. package/templates/skills/cbp-build-cc-memory/examples/user-memory.md +0 -14
  23. package/templates/skills/cbp-build-cc-memory/reference/memory-types.md +0 -59
  24. package/templates/skills/cbp-build-cc-memory/reference/when-to-save.md +0 -62
  25. package/templates/skills/cbp-build-cc-memory/templates/MEMORY-index.md +0 -4
  26. package/templates/skills/cbp-build-cc-memory/templates/memory-entry.md +0 -15
@@ -1,11 +0,0 @@
1
- ---
2
- name: Auth middleware rewrite is compliance-driven
3
- description: Compliance context for the auth rewrite — affects scope decisions
4
- type: project
5
- ---
6
-
7
- Auth middleware rewrite is driven by legal/compliance requirements around session token storage, not tech-debt cleanup.
8
-
9
- **Why:** Legal flagged the current middleware in 2026-Q1 because session tokens are stored in a way that doesn't meet the new compliance requirements. Deadline: 2026-05-15.
10
-
11
- **How to apply:** When making scope decisions on this rewrite, favour compliance over ergonomics. Don't add unrelated refactors. Don't defer compliance work for "cleaner" architecture. If asked to trade off — compliance wins.
@@ -1,13 +0,0 @@
1
- ---
2
- name: Pipeline bugs tracked in Linear INGEST
3
- description: External system pointer for pipeline-related tickets and dashboards
4
- type: reference
5
- ---
6
-
7
- Pipeline bugs are tracked in Linear project **INGEST** (https://linear.app/acme/team/INGEST).
8
-
9
- Related dashboards:
10
- - `grafana.internal/d/api-latency` — oncall latency dashboard; check when editing request-path code
11
- - `https://status.acme.com/pipeline` — customer-facing pipeline status
12
-
13
- When the user mentions a pipeline bug by ID (e.g. INGEST-4123), look there first.
@@ -1,14 +0,0 @@
1
- ---
2
- name: User role and frontend experience
3
- description: User's technical background — use to calibrate explanation depth
4
- type: user
5
- ---
6
-
7
- User has deep Go backend experience (10+ years) and is newly touching the React side of this repo.
8
-
9
- Frame frontend explanations in terms of backend analogues:
10
- - Components ≈ structs + methods
11
- - Hooks ≈ middleware-like composition
12
- - React state ≈ mutex-guarded field on a struct
13
-
14
- Skip JS fundamentals (closures, async). Go deeper on React-specific patterns (render cycles, effect semantics, ref semantics).
@@ -1,59 +0,0 @@
1
- # Memory Types Reference
2
-
3
- Four discrete types of auto-memory entries. Pick by content, not by user phrasing.
4
-
5
- ## `user`
6
-
7
- **Contains:** role, goals, responsibilities, existing knowledge.
8
-
9
- **Save when:** you learn details about who the user is or how they collaborate. Tailors future behaviour.
10
-
11
- **Skip when:** the info would be a negative judgement, or it's not relevant to work.
12
-
13
- **Example trigger:** "I'm a data scientist investigating logging."
14
-
15
- ## `feedback`
16
-
17
- **Contains:** guidance the user has given about how to approach work — corrections AND confirmations.
18
-
19
- **Save when:**
20
- - User corrects you ("no not that", "don't", "stop")
21
- - User confirms a non-obvious approach worked ("yes exactly", "that was the right call")
22
-
23
- **Structure:** rule → **Why:** (reason) → **How to apply:** (when).
24
-
25
- **Example trigger:** "stop summarizing at the end of every response."
26
-
27
- Record successes too — otherwise you drift toward cautious defaults and away from validated approaches.
28
-
29
- ## `project`
30
-
31
- **Contains:** ongoing work context — goals, deadlines, incidents, stakeholders, WHY behind initiatives.
32
-
33
- **Save when:** you learn who is doing what, why, or by when — things not derivable from code or git history.
34
-
35
- **Convert dates to absolute** when saving (never "Thursday" — always `2026-04-23`).
36
-
37
- **Structure:** fact → **Why:** → **How to apply:**.
38
-
39
- **Example trigger:** "we're freezing after Thursday for the mobile cut."
40
-
41
- Project memories decay fast. The **Why** helps future-you judge whether the memory is still load-bearing.
42
-
43
- ## `reference`
44
-
45
- **Contains:** pointers to external systems (Linear, Slack, Grafana, Notion, Confluence).
46
-
47
- **Save when:** user mentions a resource by name. Memory just says *where to look*.
48
-
49
- **Example trigger:** "the Grafana dashboard at grafana.internal/d/api-latency is what oncall watches."
50
-
51
- ## What NOT to save (any type)
52
-
53
- - Code patterns, file paths, project structure (re-derivable from code)
54
- - Git history, who-changed-what (`git log`, `git blame` are authoritative)
55
- - Debugging fixes (already in the commit; PR body has the why)
56
- - CLAUDE.md content (that's a different mechanism)
57
- - Ephemeral task state (in-progress work, current conversation)
58
-
59
- Applies **even when the user asks you to save**. If they ask to save a PR list, ask what was *surprising* — that's the part worth keeping.
@@ -1,62 +0,0 @@
1
- # When to Save vs Skip
2
-
3
- Decision tree for auto-memory entries.
4
-
5
- ## Save immediately
6
-
7
- | Signal | Type |
8
- |--------|------|
9
- | User corrects you ("no", "don't", "stop") | feedback |
10
- | User confirms a non-obvious choice worked | feedback |
11
- | User shares their role, experience, preferences | user |
12
- | User explains **why** something is the way it is | project |
13
- | User names an external system (ticket tracker, dashboard, channel) | reference |
14
- | User says "remember this" / "save this" | pick by content |
15
-
16
- ## Skip
17
-
18
- - "What's the status of X?" — derivable from code/DB, don't save
19
- - "Here's the PR list" — derivable from `gh pr list`, don't save unless something was surprising
20
- - Fix you just made — the commit has the why, don't duplicate
21
- - Architecture you just read — re-read when needed
22
-
23
- ## Update an existing entry instead of creating
24
-
25
- Before writing a new file:
26
-
27
- ```bash
28
- ls ~/.claude/projects/<project>/memory/ | grep -i {topic}
29
- ```
30
-
31
- If anything matches:
32
- - Fact has changed → edit the existing file, update description if needed
33
- - New angle on same topic → merge into existing, keep one file per topic
34
-
35
- ## Remove stale entries
36
-
37
- When a memory turns out wrong:
38
-
39
- 1. Delete the file
40
- 2. Remove the index line from MEMORY.md
41
-
42
- When a memory references something that no longer exists (file renamed/removed):
43
-
44
- 1. Grep the codebase for the referenced symbol/path
45
- 2. If truly gone, delete the memory
46
- 3. If renamed, update the memory
47
-
48
- ## Verify before acting
49
-
50
- A memory naming a specific function, file, or flag is a claim that it existed *when written*. Before recommending it:
51
-
52
- - Memory names a file path → check the file exists
53
- - Memory names a function or flag → grep for it
54
- - User is about to act on your recommendation → always verify first
55
-
56
- "Memory says X exists" is not the same as "X exists now."
57
-
58
- ## Session gates
59
-
60
- - `/clear` wipes conversation context but NOT memory — memory reloads on next session
61
- - When the user says "ignore memory" or "don't use memory" — do not cite or act on memory content for this session; do not say "memory says X"
62
- - When memory conflicts with current code — trust the code, update or remove the stale memory
@@ -1,4 +0,0 @@
1
- # Memory
2
-
3
- - [Entry title](filename.md) — one-line hook under ~150 chars
4
- - [Another entry](another.md) — one-line hook
@@ -1,15 +0,0 @@
1
- ---
2
- name: Entry title
3
- description: One-line relevance hint — future sessions read this to decide if the memory matters
4
- type: user | feedback | project | reference
5
- ---
6
-
7
- [Memory content]
8
-
9
- # For feedback and project types, structure as:
10
-
11
- The rule or fact itself in one sentence.
12
-
13
- **Why:** The reason the user gave — often a past incident or strong preference.
14
-
15
- **How to apply:** When/where this guidance kicks in, so future-you can judge edge cases.