am-command-init-rules

Generate project-specific rules under rules/ with YAML frontmatter.

Updated May 4, 2026
One-click install
npx skills add https://github.com/rigerc/repo-2 --skill am-command-init-rules
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: am-command-init-rules
Source: https://github.com/rigerc/repo-2/tree/main/.agents/skills/am-command-init-rules
Command: npx skills add https://github.com/rigerc/repo-2 --skill am-command-init-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize non-obvious modular rules for the codebase, enabling teams to codify project-specific conventions and anti-patterns.

Core Features & Use Cases

  • Discovery-driven rule authoring: Analyze repository conventions and framework configs to surface non-obvious patterns.
  • Rule-topic scoping: Gather project-specific guidance using the question tool and capture global vs path-specific contexts.
  • Generation of actionable rules: Output rules in a structured, topic-based format for future enforcement.
  • Use Case: A development team enlists the tool to codify internal conventions around module boundaries and naming rules for their monorepo.

Quick Start

Provide a set of initial, non-obvious rules for the current project and save them under rules/.

Frequently Asked Questions about am-command-init-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create project-specific rules for my codebase conventions?▼

To create project-specific rules, apply discovery, configuration, and generation phases to surface internal conventions and anti-patterns, then output structured rule files under the rules/ directory with YAML frontmatter describing each rule.

What are non-obvious codebase rules and when do I need them?▼

Non-obvious codebase rules are internal conventions, module boundaries, and edge cases that aren't immediately apparent from reading the code; you need them to formalize governance and prevent anti-patterns across a growing repository or monorepo.

How do I codify anti-patterns and internal conventions in a monorepo?▼

You can codify anti-patterns by analyzing repository conventions and framework configurations, using a question tool to gather global and path-specific contexts, and then generating actionable, topic-based rule files for future enforcement.

Can I scope project-specific rules to specific file paths?▼

Yes, you can scope project-specific rules by file paths; the generation process captures both global and path-specific contexts to ensure rules apply precisely to the relevant modules and directories within the codebase.

What is the best way to formalize repository governance patterns into actionable rules?▼

The best way to formalize repository governance is through discovery-driven rule authoring that analyzes existing patterns and outputs structured rule files with frontmatter, creating a standardized format for future automated enforcement.