Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agentic-rules-writer

БесплатноБез исполняемых скриптовНе проверен

Generate a rules file for any AI coding agent. Interactive setup that scans installed skills, asks about workflow preferences, and writes a tailored…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Agentic Rules Writer

Generate a tailored rules/instruction file for any AI coding agent. Runs an interactive questionnaire, scans installed skills at runtime, and writes the output in the correct format and location for the chosen agent and scope.

When to Use

  • Setting up a new AI coding agent for the first time
  • Creating team-shared project rules for consistent behavior across developers
  • Adding personal dev-specific rules to a project (gitignored)
  • After installing new skills to update the rules file with skill references

Quick Start

/agentic-rules-writer claude
/agentic-rules-writer cursor
/agentic-rules-writer              # asks which agent

Phase 1: Agent Selection

If $ARGUMENTS is provided, map it to an agent from the table below (case-insensitive, partial match OK — e.g. "wind" matches Windsurf). If no argument or no match, ask the user to pick.

Agent Format Notes
Claude Code Plain Markdown, keep under 200 lines
Cursor Requires YAML frontmatter: alwaysApply: true, .mdc extension
Windsurf Plain Markdown, enforce under 12,000 characters
GitHub Copilot Plain Markdown
Gemini CLI Plain Markdown
Roo Code Plain Markdown
Amp Same format as Claude Code

See references/agent-targets.md for full details on each agent's format, paths, limits, and testing instructions.


Phase 2: Scope Selection

Ask the user which scope to generate rules for:

Scope Description Typical Path (Claude Code example)
Global User-level rules applied to every project. Personal workflow preferences. ~/.claude/CLAUDE.md
Project (team-shared) Committed to the repo. Shared conventions the whole team follows. .claude/rules/team-rules.md
Project (dev-specific) Local to this dev, gitignored. Personal preferences layered on top of team rules. .claude/rules/dev-rules.md

See references/agent-targets.md for the exact path for each agent + scope combination.

If the target file already exists, ask the user:

  1. Overwrite — replace entirely with generated content
  2. Merge — append generated content below existing content (separated by ---)
  3. Abort — cancel and leave the file untouched

Phase 3: Workflow Questionnaire

Ask questions one at a time, wait for the user's answer before proceeding to the next. Accept short answers, numbers, or the exact option text.

Which questions to ask depends on the scope:

Question Global Team-shared Dev-specific
Q1. Primary stack Yes Yes Skip
Q2. Planning discipline Yes Skip Yes
Q3. Testing philosophy Yes Yes Skip
Q4. Branch conventions Yes Yes Skip
Q5. Commit conventions Yes Yes Skip
Q6. Code quality bar Yes Yes Skip
Q7. Autonomy level Yes Skip Yes
Q8. Task tracking Yes Skip Yes
Q9. Self-improvement Yes Skip Yes
Q10. Additional comments Yes Yes Yes

Rationale: Team-shared rules cover technical standards the whole team agrees on (stack, testing, branching, commits, quality). Dev-specific rules cover personal workflow preferences (planning style, autonomy, task tracking, self-improvement). Global includes everything.

See references/questionnaire.md for the full question reference with descriptions, option mappings, and example outputs.

Questions

Q1. Primary stack Options: PHP+Symfony / TypeScript+React / Python+Django / Go / Rust / Java+Spring / Other (If "Other", ask them to specify.)

Q2. Planning discipline Options:

  • Always plan first — enter plan mode for every task
  • Plan for 3+ steps — plan mode only for multi-step tasks
  • Minimal planning — jump straight to implementation

Q3. Testing philosophy Options:

  • Strict TDD — write tests before implementation, always
  • Test alongside — write tests and code together
  • Test after — implement first, add tests after
  • Minimal — only test critical paths

Q4. Branch conventions Options:

  • Type prefix — feature/, fix/, chore/, hotfix/ + description
  • Ticket prefix — PROJ-123/description or PROJ-123-description
  • Flat descriptive — just a kebab-case name, no prefix
  • Other — ask them to specify

Q5. Commit conventions Options:

  • Conventional commits — feat:, fix:, chore:, etc.
  • Ticket prefix — PROJ-123: description
  • Freeform — no enforced format

Q6. Code quality bar Options:

  • Staff engineer rigor — exhaustive edge cases, defensive coding, thorough documentation
  • Senior pragmatic — solid quality with practical trade-offs
  • Ship fast — working code with minimal ceremony

Q7. Autonomy level Options:

  • Autonomous — fix bugs, failing CI, lint errors without asking
  • Semi-autonomous — ask before destructive or risky operations only
  • Conservative — confirm everything before acting

*Q8. Task tracking

Полный SKILL.md на GitHub

Установить agentic-rules-writer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл agentic-rules-writer?

Generate a rules file for any AI coding agent. Interactive setup that scans installed skills, asks about workflow preferences, and writes a tailored instruction file for Claude Code, Cursor, Windsurf, Copilot, Gemini, Roo Code, or Amp. Supports global (user-level), project team-shared, and project dev-specific scopes.

Как установить скилл agentic-rules-writer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agentic-rules-writer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agentic-rules-writer с