20 Commits

Author SHA1 Message Date
Trevin Chow
fe27f85810 feat: add consolidation support and overlap detection to ce:compound and ce:compound-refresh skills (#372) 2026-03-25 00:37:45 -07:00
Trevin Chow
5c1452d4cc feat: integrate claude code auto memory as supplementary data source for ce:compound and ce:compound-refresh (#311) 2026-03-18 11:55:19 -07:00
Trevin Chow
c2582fab67 fix(skill): align compound-refresh question tool guidance 2026-03-15 15:01:52 -07:00
Trevin Chow
b7e43910fb fix(skills): require specific branch names based on what was refreshed 2026-03-15 14:44:34 -07:00
Trevin Chow
a47f7d67a2 fix(skills): use actual branch name in commit options instead of 'this branch' 2026-03-15 14:44:34 -07:00
Trevin Chow
0c333b08c9 fix(skills): allow direct commit on main as non-default option 2026-03-15 14:44:34 -07:00
Trevin Chow
6969014532 fix(skills): enforce branch creation when committing on main
The model was offering "commit to current branch" on main instead
of "create a branch and PR." Added explicit branch detection step
and "Do NOT commit directly to main" instruction.
2026-03-15 14:44:34 -07:00
Trevin Chow
e3e7748c56 fix(skills): remove prescriptive branch naming in compound-refresh
Let the agent generate a reasonable branch name based on context
and repo conventions instead of prescribing a date-based format
that would collide on multiple runs per day.
2026-03-15 14:44:34 -07:00
Trevin Chow
d4c12c39fd feat(skills): add Phase 5 commit workflow to ce:compound-refresh
Handles committing changes at the end of a refresh run so doc
maintenance doesn't sit uncommitted. Detects git context and adapts:
autonomous mode uses sensible defaults (branch + PR on main, separate
commit on feature branches), interactive mode presents options. Always
selectively stages only compound-refresh files to avoid mixing with
in-progress feature work.
2026-03-15 14:44:34 -07:00
Trevin Chow
db8c84acb4 fix(skills): include tool constraint in subagent task prompts
The file-tools-over-bash instruction was in the orchestrator's
context but not passed to spawned subagents. Changed to an explicit
quoted instruction block that must be included in each subagent's
task prompt so it's visible to the subagent, not just the orchestrator.
2026-03-15 14:44:34 -07:00
Trevin Chow
42013612bd fix(skills): prevent auto-archive when problem domain is still active
Auto-archive now requires both the implementation AND the problem
domain to be gone. If referenced files are deleted but the application
still deals with the same problem (auth, payments, migrations), the
learning should be Replace'd not Archive'd — the knowledge gap needs
to be filled. Uses agent reasoning about concepts, not mechanical
keyword searches.
2026-03-15 14:44:34 -07:00
Trevin Chow
c271bd4729 fix(skills): specify markdown format for autonomous report output 2026-03-15 14:44:34 -07:00
Trevin Chow
2ae6fc4458 fix(skills): enforce full report output in autonomous mode
The model was generating findings internally then outputting a
one-line summary. Added explicit instructions that the full report
must be printed as text output — every file, every classification,
every action. In autonomous mode, the report is the sole deliverable
and must be self-contained and complete.
2026-03-15 14:44:34 -07:00
Trevin Chow
d3aff58d9e fix(skills): strengthen autonomous mode to prevent blocking on user input
- Restructure Phase 3 with explicit autonomous skip section that says
  "do not ask, do not present, do not wait" before any interactive
  instructions
- Add autonomous caveats to Core Rules 4, 7, 8 which previously had
  unconditional "ask the user" language
- Clarify that missing referenced files is unambiguous Archive evidence,
  not a doubt case requiring user input
2026-03-15 14:44:34 -07:00
Trevin Chow
684814d951 fix(skills): autonomous mode adapts to available permissions
Instead of requiring write permissions, autonomous mode attempts
writes and gracefully falls back to recommendations when denied.
Report splits into Applied (succeeded) and Recommended (could not
write) sections. Read-only invocations produce a maintenance plan.
2026-03-15 14:44:34 -07:00
Trevin Chow
699f484033 feat(skills): add autonomous mode to ce:compound-refresh
Support mode:autonomous argument for unattended/scheduled runs.
In autonomous mode: skip all user questions, apply safe actions
directly, mark ambiguous cases as stale with conservative confidence,
and generate a detailed report for after-the-fact human review.
2026-03-15 14:44:34 -07:00
Trevin Chow
95ad09d3e7 feat(skills): add smart triage, drift classification, and replacement subagents to ce:compound-refresh
- Broad scope triage: inventory + impact clustering + spot-check drift
  for 9+ docs, recommends highest-impact area instead of blind ask
- Drift classification: sharp boundary between Update (fix references
  in-skill) and Replace (subagent writes successor learning)
- Replacement subagents: sequential subagents write new learnings using
  ce:compound's document format with investigation evidence already
  gathered, avoiding redundant research
- Stale fallback: when evidence is insufficient for a confident
  replacement, mark as stale and recommend ce:compound later
2026-03-15 14:44:34 -07:00
Trevin Chow
187571ce97 fix(skills): steer compound-refresh subagents toward file tools over shell commands
Avoids unnecessary permission prompts during investigation by
preferring dedicated file search and read tools instead of bash.
2026-03-15 14:44:34 -07:00
Trevin Chow
0dff9431ce fix(skills): improve ce:compound-refresh interaction and auto-archive behavior
- Use platform-agnostic interactive question tool phrasing with examples
  for Claude Code and Codex instead of hardcoding AskUserQuestion
- Fix contradiction between Phase 2 auto-archive criteria and Phase 3
  always-ask-before-archive rule so unambiguous archives proceed without
  unnecessary user prompts
2026-03-15 14:44:34 -07:00
Trevin Chow
bd3088a851 feat(skills): add ce:compound-refresh skill for learning and pattern maintenance
Adds a new skill that reviews existing docs/solutions/ learnings against the
current codebase and decides whether to keep, update, replace, or archive them.
Also enhances ce:compound with Phase 2.5 selective refresh checks.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-15 14:44:34 -07:00