base-agent-rules
v0.1.2
Published
Reusable base rules and skills for Codex-style agents and Claude Code.
Readme
base-agent-rules
Reusable base rules and working protocols for Codex and Claude Code.
What is included
CLAUDE.mdA short always-on rule file for Claude Code projects.AGENTS.mdA short always-on rule file for Codex-style agent projects.docs/base-skills.mdA fuller playbook that explains the common workflow behind the short rules.skills/Reusable base skills for project onboarding, scoping, planning, safe changes, debugging, refactoring, validation, review, summaries, and handoff.scripts/install-claude-files.shA small installer that copies the Claude-facing files and repository-managed skills into a target project.
Base skills
project-onboardingtask-scopingimplementation-planningcode-change-safetydebuggingrefactor-safelytesting-and-validationreview-and-critiquecommit-and-pr-summaryhandoff-documentation
Recommended usage
npx
From the target project:
npx github:jaehongjun/base-agent-rulesOr pass a target directory explicitly:
npx github:jaehongjun/base-agent-rules /path/to/projectAfter publishing the package to npm, the command becomes:
npx base-agent-rulesThe installer appends or updates a managed base-agent-rules block in CLAUDE.md and AGENTS.md instead of overwriting existing project instructions. It also copies skills into both .agents/skills/ and .claude/skills/ so Codex-style agents and Claude Code can discover the same SKILL.md files without creating a top-level skills/ directory in application projects.
Claude Code
Copy these files into a project:
CLAUDE.mdAGENTS.mddocs/base-skills.md.agents/skills/.claude/skills/
Use the installer:
./scripts/install-claude-files.sh /path/to/projectCodex
Use .agents/skills/ in installed projects. In this repository, skills/ remains the source directory used by the installer.
Philosophy
- Keep always-on rules short.
- Keep detailed workflows in separate documents.
- Prefer behavior rules over stack-specific instructions.
- Optimize for consistency, safety, and low-regression changes.
