source-command-create-rules

Generate AGENTS.md global rules from codebase analysis.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/jmolz/m0lz.02 --skill source-command-create-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: source-command-create-rules
Source: https://github.com/jmolz/m0lz.02/tree/main/.agents/skills/source-command-create-rules
Command: npx skills add https://github.com/jmolz/m0lz.02 --skill source-command-create-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of global rules from codebase analysis, reducing manual documentation efforts and improving consistency.

Core Features & Use Cases

  • Codebase Analysis: Automatically discovers existing documentation, project type, and codebase structure.
  • Pattern Extraction: Identifies naming, structure, errors, types, imports, and testing patterns within the codebase.
  • Best Practices Research: Provides guidance on testing strategies, logging best practices, and common patterns for the chosen framework.
  • AGENTS.md Generation: Outputs a concise AGENTS.md file with project-specific constraints and conventions, ensuring under 500 lines.
  • On-Demand Context Creation: Supports the creation of on-demand rule files for distinct subsystems like frontend, API, database, and testing.

Quick Start

Run the source-command-create-rules skill to analyze your codebase and generate an AGENTS.md file.

Frequently Asked Questions about source-command-create-rules

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

FAQPage Schema
How do I generate AGENTS.md rules from codebase analysis?

Generating AGENTS.md from codebase analysis involves running the skill to discover existing documentation, extract naming and structural patterns, and output a concise rules file with project-specific constraints.

What is AGENTS.md and when do I need global rules for my codebase?

AGENTS.md is a concise global rules file that documents project constraints and conventions. You need it when manual documentation becomes inconsistent and you want to automate codebase pattern extraction.

How to extract coding conventions and testing patterns from an existing project?

Extract coding conventions and testing patterns by running static analysis on your codebase to identify naming, structure, errors, types, imports, and testing patterns, then compile findings into an AGENTS.md file.

Can I create on-demand rule files for distinct subsystems like frontend and API?

Yes, you can create on-demand rule files for distinct subsystems like frontend, API, database, and testing, allowing targeted documentation of constraints and conventions for each area.

Does codebase automation for rule generation work without existing project documentation?

Codebase automation for rule generation requires analysis of project documentation and structure, so having documentation available ensures more accurate pattern extraction and constraint identification.

What are the limitations of automated AGENTS.md generation?

Automated AGENTS.md generation limits output to under 500 lines for conciseness, and relies on static analysis which may miss dynamic runtime patterns or complex architectural conventions not visible in code structure.