Commit Graph

28 Commits

Author SHA1 Message Date
csh f2ab57b39f feat(playbook): add install_mode deployment config
BREAKING CHANGE: [vendor] and playbook.deploy_root are no longer supported. Use [playbook].install_mode and playbook.playbook_root instead.
2026-06-01 10:49:16 +08:00
csh c35cf841bc 🐛 fix(playbook): add heading to generated CLAUDE.md 2026-05-31 13:43:59 +08:00
csh 7db5e4a697 🐛 fix(scripts): force LF for generated text files 2026-05-30 07:59:56 +08:00
csh c0729c7933 🐛 fix(playbook): import Optional for cli compatibility
restore the missing typing.Optional import in scripts/playbook.py
so older python runtimes can import the CLI module successfully.

add a regression test for typing annotation imports and register it
in the tests README.
2026-05-19 10:09:55 +08:00
csh 2c5050de09 ♻️ refactor(skills): rename repo skills source dir
move the repository skills source from `codex/skills` to `skills`.

update vendor/install_skills paths, thirdparty sync pipeline, docs, and regression tests, including deployment-route e2e coverage.
2026-05-19 09:09:54 +08:00
csh 234b335663 feat(workflow): add superpowers planning and execution state tracking 2026-05-18 16:28:06 +08:00
csh 4ac86729d7 📝 docs: simplify README + platform-agnostic tools + auto-create local rules
- Simplify docs/ section to grouped summary with pointer to docs/index.md
- Remove outdated performance metrics table
- Use cross-platform path examples throughout
- Make AGENT_RULES tool usage section platform-agnostic
- Auto-create AGENT_RULES.local.md on sync_rules (empty template)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 09:58:13 +08:00
csh c8d6bf21a6 🐛 fix(playbook): use relative paths in CLAUDE.md when not at project root
When CLAUDE.md lives in a subdirectory (e.g. .claude/CLAUDE.md), the
@AGENTS.md import must use ../AGENTS.md since Claude Code resolves @path
relative to the file's directory. Calculate depth automatically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 08:11:48 +08:00
csh 6518f0f554 feat(playbook): auto-create CLAUDE.md with path discovery
sync_claude_md now:
- Checks project root CLAUDE.md first, then .claude/CLAUDE.md
- Auto-creates if neither exists (default: project root)
- Supports playbook.claude_md config to override location
- Update test to verify auto-creation behavior

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-16 13:29:33 +08:00
csh 6ec9a45a83 feat(skills): add skill_link symlink support + platform-agnostic prompt
- Add skill_link config option to create a symlink/junction from another
  platform's skills dir to agents_home/skills/ (e.g. ~/.claude -> ~/.agents)
- On Windows, falls back to directory junction when symlink requires admin
- Add _create_skills_symlink() with _is_junction() helper for Windows
- Update playbook.toml.example with skill_link documentation
- Fix templates/README.md prompt example to be platform-agnostic
- Add 3 tests: symlink creation, idempotency, absence when unconfigured

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-16 13:16:32 +08:00
csh 452c6f58f9 feat(playbook): auto-inject AGENTS.md into CLAUDE.md
When any sync action runs and the target project already has a CLAUDE.md,
automatically insert @AGENTS.md / @AGENT_RULES.md import block so
Claude Code picks up the same rules as Codex without manual setup.

- Add sync_claude_md() called at end of sync_agents_template()
- Uses <!-- playbook:claude:start/end --> block markers for idempotent updates
- Skips if no CLAUDE.md exists (Codex users unaffected)
- Skips if @AGENTS.md already present (manual setups respected)
- Add 4 tests covering: no file, append, update block, already-referenced

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 17:16:35 +08:00
csh f94dba0348 ♻️ refactor(skills): update playbook.py and tests for thirdparty/ layout
- install_skills_action: collect skills from both codex/skills/ (own) and
  codex/skills/thirdparty/ (thirdparty); mode=all installs both, mode=list
  searches both; log [thirdparty] tag for third-party installs
- Update test_thirdparty_skills_pipeline: fix source_list path assertion
- Update SKILLS.md: document thirdparty/ subdirectory structure

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 15:09:15 +08:00
csh a2e3cb07de feat(playbook): add no_backup deploy controls
remove obsolete main_language placeholders and language summary template text

limit generated .agents guidance to configured langs and normalize AGENT_RULES trailing newlines

document install_skills no_backup behavior and refresh tests for deployment links and sync flows
2026-04-24 10:06:03 +08:00
csh 96b705b00b 📝 docs(tsl): rebuild canonical syntax and routing manual 2026-04-22 16:59:20 +08:00
csh 94395056ea 🐛 fix(playbook): address reported repo issues
normalize Windows path-like TOML config values, regenerate .agents/index.md on sync, keep the SKILLS.md superpowers section route-only, and ignore generated Python cache dirs.

add regression coverage for load_config() and the standards sync behavior touched by these fixes.
2026-03-10 10:10:28 +08:00
csh 1f46203299 feat(typescript): add standards docs and sync rewrite coverage 2026-02-24 17:30:43 +08:00
csh 872c1afc24 🔧 feat(skills): install to agents home 2026-02-05 15:26:48 +08:00
csh 0d9a8ec465 🐛 fix(playbook): honor no_backup for sync 2026-01-27 18:00:05 +08:00
csh 60ff3cd035 🐛 fix(playbook): sync templates per file 2026-01-27 16:54:18 +08:00
csh 73d5c261b1 🔧 chore(playbook): split sync_templates into sections 2026-01-27 08:49:40 +08:00
csh 278750e3c9 feat(playbook): add plan progress tracking and rules updates 2026-01-26 16:51:23 +08:00
csh 6efd637119 🐛 fix(sync): keep agents block blank lines 2026-01-26 09:34:44 +08:00
csh ea00d43bb8 🐛 fix(playbook): support toml without tomllib 2026-01-23 16:54:53 +08:00
csh 0c4cd0e037 feat(actions): add install_skills and format_md 2026-01-23 14:40:08 +08:00
csh 3d1582ce9e feat(sync): add templates and standards actions 2026-01-23 14:37:55 +08:00
csh 49bbfa13e4 feat(vendor): add playbook snapshot generation 2026-01-23 14:30:30 +08:00
csh 8cfcc25f98 feat(cli): parse toml config and dispatch actions 2026-01-23 14:24:07 +08:00
csh 65d216ef52 test(cli): add basic playbook cli tests 2026-01-23 14:15:12 +08:00