feat: lean CLAUDE.md by default + standalone variant for contributors#923
Conversation
- Drop tdd.md from all generated rule sets - Add [agent_rules.targets.claude.sets] with `all` (lean) and `standalone` (full); CLAUDE.md no longer duplicates Python and pytest standards that workspace users already get from .claude/rules/ - Add --targets CLI filter to `pipelex-dev kit rules` to constrain which preferred targets get regenerated - Add `make rules-claude-standalone` for contributors without the Pipelex workspace - Document the lean/standalone split in CONTRIBUTING.md - Cover lean/standalone behavior with a new integration test Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR changes how Pipelex agent rules are generated and adds a standalone Claude rules option. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'dev' into feature/Rules" | Re-trigger Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 157e2f62c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
1 issue found across 8 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Summary
make rulesproduce a leanCLAUDE.mdthat omits Python and pytest standards (Pipelex maintainers already get those from the workspace's.claude/rules/).AGENTS.mdwith the full standards inline for non-Claude agents.make rules-claude-standalonefor contributors without the workspace — regeneratesCLAUDE.mdwith everything inline.tdd.mdfrom all generated rule sets.Implementation: uses the existing per-target set override mechanism (
[agent_rules.targets.<id>.sets]) plus a new--targetsCLI filter onpipelex-dev kit rulesso the standalone command regenerates onlyCLAUDE.md.Test plan
make tb— config boot sanitymake agent-check— ruff, plxt, pyright, mypy all cleanpytest tests/unit/pipelex/kit/ tests/integration/pipelex/kit/— 22 passed (incl. 4 new intest_target_set_overrides.py)make rules→ leanCLAUDE.md(no Python/pytest/TDD),AGENTS.mdkeeps full standards (TDD removed)make rules-claude-standalone→ fullCLAUDE.md,AGENTS.mduntouchedmake check-rules→ passes against the lean baseline🤖 Generated with Claude Code
Summary by cubic
Make
CLAUDE.mdlean by default and add a standalone option for contributors. Adds--targetstopipelex-dev kit rulesand makes Cursor cleanup safer and idempotent.New Features
make rulesgenerates a leanCLAUDE.md;AGENTS.mdkeeps Python/pytest.make rules-claude-standaloneregeneratesCLAUDE.mdwith the full ruleset (targets onlyclaude).pipelex-dev kit rules --targetsupdates a subset of preferred targets with validation; cleanup keep-set remains the full preferences.claudeinindex.toml:all(lean) andstandalone(full).tdd.md. Cursor.mdcfiles addpipelex_managed: true; cleanup also honorsagent_rules.deprecated_rule_stems(e.g.["tdd"]) and removes pre-marker files safely.Migration
CLAUDE.mdfrommake rules; this is canonical.make rules-claude-standalonelocally; do not commit it.pipelex-dev kit rules --targets claudeto limit regeneration when needed.Written for commit df48c52. Summary will update on new commits. Review in cubic