Add Agent/Commitment Combo
When To Use
Use this skill when a user asks to:
- •Add a new agent to
agent-library/agents/ - •Add a new commitment-specific behavior
- •Create a new commitment + agent module pair for registration/testing
Repository Rules This Skill Enforces
- •Put commitment-specific logic in
agent-library/agents/<agent-name>/. - •Do not add single-agent behavior to shared generalized files like
agent/src/index.jsandagent/src/lib/*. - •Only change shared runner files for cross-agent infrastructure or shared bug fixes.
Required Inputs
Collect these before editing:
- •
agent_name(kebab-case directory name) - •Commitment text/rules for
commitment.txt - •Behavior constraints (what the agent may and may not do)
- •Metadata inputs needed for
agent.json(name/description/network pointers)
Workflow
- •Copy
agent-library/agents/default/toagent-library/agents/<agent-name>/. - •Update
agent-library/agents/<agent-name>/commitment.txt. - •Implement commitment-specific logic in
agent-library/agents/<agent-name>/agent.js. - •Update
agent-library/agents/<agent-name>/agent.json. - •Add or update module-local test/simulation scripts in that same module folder.
- •Validate with
node agent/scripts/validate-agent.mjs --module=<agent-name>and module-specific tests/simulations underagent-library/agents/<agent-name>/. - •Summarize changed files and validation commands.
Pull Request Expectations
When opening a PR for a new module:
- •State that agent-specific behavior is isolated to
agent-library/agents/<agent-name>/. - •If shared runner files were changed, explain why an agent-local implementation was insufficient and list impacted agents.
- •Include exact validation commands run.
Local Setup For Codex And Claude Code
This repository stores the skill at:
- •
skills/add-agent-commitment/SKILL.md
To use it locally, register this folder in your assistant's skills path.
Codex option (symlink into your local skills directory):
bash
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
mkdir -p "$CODEX_HOME/skills"
ln -sfn "$(pwd)/skills/add-agent-commitment" "$CODEX_HOME/skills/add-agent-commitment"
Claude Code option:
- •Add or symlink
skills/add-agent-commitment/into the skills directory configured in your Claude Code setup. - •If your team uses a shared Claude config path, point that path at this repo skill folder.
After setup, invoke by name (add-agent-commitment) or ask to "create a new agent/commitment combo".