Scaffold Rules
Agent Buildingscaffold-rulesScaffold Rules is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Scaffold development rules for AI coding agents. Auto-invoked when user asks about setting up rules, coding conventions, or configuring their AI agent environment.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/scaffold-rules/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/scaffold-rules, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Scaffold Rules
Scaffold shared development rules for AI coding agent environments.
When to Use
Use when the user wants to:
- Set up development rules or coding conventions
- Configure their AI coding agent environment
- Add project guidelines for Claude, Cursor, or other agents
Workflow
Step 1: Preview Changes (Optional)
bunx @plaited/development-skills scaffold-rules --dry-run
Review the actions array to see what will be created.
Step 2: Run Scaffold
bunx @plaited/development-skills scaffold-rules
This will:
- Copy rules to
.plaited/rules/(canonical location) - Create symlinks in
.claude/rulesand.cursor/rules(if those directories exist) - Fallback: append links to
AGENTS.mdif no agent directories found
Step 3: Report to User
Tell the user what was created based on the actions output.
CLI Options
| Flag | Description |
|---|---|
--list, -l | List available rules without scaffolding |
--dry-run, -n | Preview actions without making changes |
How It Works
.plaited/rules/ ← Canonical location (files copied here)
├── testing.md
├── bun.md
└── ...
.claude/rules -> ../.plaited/rules ← Symlink (if .claude/ exists)
.cursor/rules -> ../.plaited/rules ← Symlink (if .cursor/ exists)
| Project has... | Copy | Symlinks | AGENTS.md |
|---|---|---|---|
.plaited/ only | ✓ | None | No |
.claude/ only | ✓ | .claude/rules | No |
.cursor/ only | ✓ | .cursor/rules | No |
.plaited/ + .claude/ | ✓ | .claude/rules | No |
.plaited/ + .cursor/ | ✓ | .cursor/rules | No |
.plaited/ + .claude/ + .cursor/ | ✓ | Both | No |
| None of the above | ✓ | None | ✓ Append links |
Related Skills
- validate-skill - Validate skill directories against AgentSkills spec