Commit Graph

178 Commits

Author SHA1 Message Date
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 f049dfbe10 📦 deps(skills): drop duplicate first-party superpowers skills 2026-05-18 16:34:39 +08:00
csh 234b335663 feat(workflow): add superpowers planning and execution state tracking 2026-05-18 16:28:06 +08:00
csh c1702a667a 📝 docs(markdown): format tracked markdown and drop stale templates 2026-05-18 16:06:21 +08:00
csh 2325409f53 📝 docs(markdown): clarify optional markdownlint usage 2026-05-18 15:55:01 +08:00
csh 214c44eebc 🔧 chore(markdown): add markdownlint baseline and lint fixes 2026-05-18 15:43:48 +08:00
csh a22b324c5c 📝 docs(templates): add execution and memory-bank prompt templates 2026-05-18 15:43:00 +08:00
csh 223a7974b0 📝 docs(templates): update README for Claude Code and current features
- Add CLAUDE.md and AGENT_RULES.local.md to framework templates (A class)
- Move AGENT_RULES.local.md from C class to A class (auto-created now)
- Add CLAUDE.md to deployed directory structure
- Expand config table with all actions and options
- Add CLAUDE.md auto-detection note
- Update codex/skills reference to mention thirdparty/
- Update last-modified date

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 10:12:18 +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 2431c9d3ad 📝 docs: add claude_md config and use cross-platform paths
- Add claude_md option to playbook.toml.example with auto-detection docs
- Replace Windows-only C:/tools/playbook paths with /opt/playbook in README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 10:35:54 +08:00
csh d64b248adf 📝 docs: fix README.md inaccuracies and add Claude Code info
- Fix ruleset line counts (tsl:45, cpp:46, python:44)
- Add thirdparty/ to Layer 2 architecture diagram
- Fix "三者" → "各规则集" (was referencing 3 but listing 5)
- Add CLAUDE.md auto-creation to deployment behavior section
- Add AGENTS.md and CLAUDE.md to recommended project structure

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 08:49:01 +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 9f8b6b5369 📝 docs: update README and config example for Claude Code support
- Rename SKILLS section heading to include Claude Code
- Update agents_home comment to mention ~/.claude for Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 18:31:18 +08:00
csh 79cff6cc34 📝 docs(skills): add Claude Code platform support
- Rename "Codex CLI skills" to "AI agent skills" throughout
- Add platform table: Codex CLI (~/.agents/skills/) vs Claude Code (~/.claude/skills/)
- Document Claude Code enable steps (settings.json) alongside Codex config
- Update install section with per-platform agents_home examples
- Update troubleshooting section for both platforms
- Update playbook.toml.example agents_home comment

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 18:03:15 +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 e1dbf3cc45 🐛 fix(skills): remove dual-path from commit-message skill
Drop the vendoring-scenario fallback path from commit-message/SKILL.md.
rewrite_skill_docs_links handles path rewriting at install time, so the
source file only needs the canonical docs/common/ path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 17:15:10 +08:00
csh f3a7259a05 🔧 chore(ci): use prepare_repo.sh in both workflows
Replace duplicated inline checkout logic in standards-check.yml and
test.yml with a call to .gitea/ci/prepare_repo.sh. Also remove the
unused TEST_WORKSPACE env var from test.yml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 17:14:16 +08:00
csh da08212cd6 🔧 chore(ci): extract prepare_repo.sh and clean up workflows
- Extract shared repo-checkout logic into .gitea/ci/prepare_repo.sh,
  removing ~47 lines of duplication from standards-check.yml and test.yml
- Remove unused TEST_WORKSPACE env var from test.yml

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 15:51:48 +08:00
csh 7ade85ea1b 🗑️ remove(tsl): drop syntax_book/, data/ source and build script
- Remove docs/tsl/syntax_book/ (superseded by docs/tsl/syntax/)
- Remove data/tsl_reference_catalog_source/ (catalog already generated
  into docs/tsl/reference/catalog/, source no longer needed)
- Remove scripts/build_tsl_reference_catalog.ps1 (build script for
  the above source)
- Remove test assertion that referenced the deleted data/ source index

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 15:50:49 +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 b3df41205d ♻️ refactor(skills): separate thirdparty skills into thirdparty/ subdirectory
- Move all third-party skills from codex/skills/ to codex/skills/thirdparty/
- Move .sources/ to codex/skills/thirdparty/.sources/
- Delete systematic-debugging/CREATION-LOG.md (internal dev note, not skill content)
- Update sync_thirdparty_skills.sh paths and conflict detection
- Update thirdparty_skills.json source_list paths
- Update install_skills_action to collect from both own and thirdparty dirs,
  logging [thirdparty] tag for third-party installs
- Update SKILLS.md directory structure docs
- Update tests to reflect new paths

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 14:50:02 +08:00
ci[bot] 64950e7979 📦 deps(skills): sync thirdparty skills 2026-05-05 16:03:45 +00: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 8609d59d4a 🐛 fix(docs): repair reference catalog source links 2026-04-23 14:36:00 +08:00
csh 956da11348 🐛 fix(playbook): publish hidden ci test fixes
Unhide the tracked docs and test updates that were left under assume-unchanged, remove the shipped tsl-guide skill, and align the deploy_root-related test coverage with the current external-clone rules.
2026-04-23 14:02:42 +08:00
ci[bot] 3f6775429c 📦 deps(skills): sync thirdparty skills 2026-04-23 01:43:21 +00:00
csh 08ca87b74c 📦 deps(skills): add karpathy thirdparty sync 2026-04-23 09:31:45 +08:00
csh 96b705b00b 📝 docs(tsl): rebuild canonical syntax and routing manual 2026-04-22 16:59:20 +08:00
ci[bot] 3ed5052e61 📦 deps(skills): sync thirdparty skills 2026-04-03 16:03:11 +00:00
ci[bot] 60108dd75a 📦 deps(skills): sync thirdparty skills 2026-04-01 06:27:26 +00:00
csh da85d4efbb 🐛 fix(thirdparty): prune nested project snapshots 2026-04-01 14:25:25 +08:00
ci[bot] a2a697e97b 📦 deps(skills): sync thirdparty skills 2026-04-01 14:02:51 +08:00
ci[bot] 9df610a0b6 🐛 fix(thirdparty): exclude duplicated superpowers skills 2026-04-01 14:01:33 +08:00
ci[bot] 33dd5bb6ba 🐛 fix(thirdparty): preserve optional manifest fields 2026-04-01 13:55:55 +08:00
csh 91b0ea7458 🐛 fix(thirdparty): preserve manifest during snapshot update 2026-04-01 13:46:54 +08:00
csh 2e26f98687 🔧 chore(thirdparty): generalize skills sync pipeline
replace the superpowers-only workflow with a manifest-driven pipeline
sync ui-ux-pro-max into codex/skills and document source lists
fix the prettier path test so the Python suite passes on Windows
2026-04-01 13:11:10 +08:00
ci[bot] 5b9c1e36be 📦 deps(skills): sync superpowers 2026-03-26 16:02:43 +00:00
csh 2f2d34abe2 📝 docs(readme): normalize subtree command spacing 2026-03-19 14:55:19 +08:00
csh 62db7dbd56 🐛 fix(ci): serialize superpowers update and sync 2026-03-19 14:34:43 +08:00
csh 34632234c8 🐛 fix(ci): use literal superpowers sync paths
Update and Sync Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m28s Details
Update and Sync Superpowers / Sync skills to main (push) Has been skipped Details
2026-03-19 13:39:27 +08:00
ci[bot] 48f6de8410 📦 deps(skills): sync superpowers
Update and Sync Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m26s Details
Update and Sync Superpowers / Sync skills to main (push) Has been skipped Details
2026-03-18 16:02:32 +00:00
csh 4b23529ca9 🔧 chore(ci): merge superpowers update and sync workflow
Update and Sync Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m30s Details
Update and Sync Superpowers / Sync skills to main (push) Failing after 1m26s Details
2026-03-17 18:01:42 +08:00
ci[bot] a56d75be38 📦 deps(skills): sync superpowers
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m25s Details
2026-03-17 08:54:00 +00:00
csh 84bcefab73 🔧 chore(ci): use ci[bot] commit author name
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m27s Details
2026-03-17 16:53:41 +08:00
ci-bot 00a07e58db 📦 deps(skills): sync superpowers
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m25s Details
2026-03-12 09:48:00 +00:00
csh 7b84daf3bd 🐛 fix(templates): enforce main loop progress tracking
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m20s Details
replace the old select/record progress flow with a single main_loop claim/finish CLI.

route template execution through main_loop only, remove the legacy plan_progress entry points, and update tests to enforce the new behavior.
2026-03-12 17:47:33 +08:00
csh 51373d7469 🔧 chore(ci): automate superpowers sync workflow
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m19s Details
run the thirdparty superpowers snapshot updater on a daily schedule.

trigger sync-superpowers automatically when thirdparty/skill is updated and cover the new automation with workflow tests.
2026-03-12 10:25:59 +08:00
csh eaaa39c39b 🐛 fix(ci): prevent stale superpowers sync from restoring skills block
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m17s Details
remove the stale superpowers list block from SKILLS.md so the document routes to the source list only.

clear assume-unchanged and skip-worktree flags in the sync workflow before refreshing the workspace, and add a regression test for that safeguard.
2026-03-12 09:47:12 +08:00