scaffold-rules

Scaffold development rules for AI coding agents. Auto-invoked when user asks about setting up rules, coding conventions, or configuring their AI agent environment.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "scaffold-rules" with this command: npx skills add plaited/development-skills/plaited-development-skills-scaffold-rules

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:

  1. Write rules into AGENTS.md (creates if missing, updates between markers if present)
  2. Add @AGENTS.md reference to CLAUDE.md if it exists without one

Step 3: Report to User

Tell the user what was created based on the actions output.

CLI Options

FlagDescription
--list, -lList available rules without scaffolding
--dry-run, -nPreview actions without making changes

How It Works

Rules are written directly into AGENTS.md between markers:

<!-- PLAITED-RULES-START -->

## Rules

(rule content inlined here)

<!-- PLAITED-RULES-END -->
  • No AGENTS.md: Creates one with rules section
  • AGENTS.md without markers: Appends rules section with markers
  • AGENTS.md with markers: Replaces content between markers (preserves user content outside)
  • CLAUDE.md exists: Adds @AGENTS.md reference if not already present

Troubleshooting

IssueCauseFix
Rules duplicated in AGENTS.mdMarkers were manually deletedRemove duplicate section, re-run scaffold-rules
Update didn't applyOnly one marker present (start or end)Ensure both <!-- PLAITED-RULES-START --> and <!-- PLAITED-RULES-END --> exist, or delete both to get a fresh append
@AGENTS.md not added to CLAUDE.mdCLAUDE.md doesn't existCreate CLAUDE.md first, then re-run

Do not manually edit content between the PLAITED-RULES-START and PLAITED-RULES-END markers — it will be overwritten on next run.

Related Skills

  • validate-skill - Validate skill directories against AgentSkills spec

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

typescript-lsp

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

optimize-agents-md

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-documentation

No summary provided by upstream source.

Repository SourceNeeds Review