AgentSkillsCN

scaffold-rules

为AI编码代理制定脚手架开发规则。当用户咨询如何设定规则、规范编码风格,或配置其AI代理环境时,此技能将自动启用。

SKILL.md
--- frontmatter
name: scaffold-rules
description: Scaffold development rules for AI coding agents. Auto-invoked when user asks about setting up rules, coding conventions, or configuring their AI agent environment.
license: ISC
compatibility: Requires bun
allowed-tools: Bash

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)

bash
bunx @plaited/development-skills scaffold-rules --dry-run

Review the actions array to see what will be created.

Step 2: Run Scaffold

bash
bunx @plaited/development-skills scaffold-rules

This will:

  1. Copy rules to .plaited/rules/ (canonical location)
  2. Create symlinks in .claude/rules and .cursor/rules (if those directories exist)
  3. Fallback: append links to AGENTS.md if no agent directories found

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

code
.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...CopySymlinksAGENTS.md
.plaited/ onlyNoneNo
.claude/ only.claude/rulesNo
.cursor/ only.cursor/rulesNo
.plaited/ + .claude/.claude/rulesNo
.plaited/ + .cursor/.cursor/rulesNo
.plaited/ + .claude/ + .cursor/BothNo
None of the aboveNone✓ Append links

Related Skills

  • validate-skill - Validate skill directories against AgentSkills spec