Skip to content
Agentmart
Submit a tool

find-rules

Discover and understand project rules, coding standards, and architectural guidelines before starting a task.

Skill by marcioaltoe

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/marcioaltoe-find-rules

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Discover and understand project rules, coding standards, and architectural guidelines before starting a task. Use when you need to know the constraints, patterns, or compliance requirements for a feature, file, or technology.

Use cases: security, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/find-rules

What's inside

Skill name
find-rules
Description
Discover and understand project rules, coding standards, and architectural guidelines before starting a task. Use when you need to know the constraints, patterns, or compliance requirements for a feature, file, or technology.
License
MIT
Instructions
181 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Find Rules

This skill helps you discover and understand the specific rules, conventions, and guidelines that apply to your current task. It systematically explores project documentation to ensure compliance with project standards.

## Instructions

Follow this workflow to identify applicable rules:

### 1. Understand Context

First, analyze the task to determine:

- **Task Type**: PRD creation, Technical Spec, Feature Implementation, Refactoring, Bugfix, etc.
- **Technologies**: React, Elysia, Tailwind, Drizzle, etc.
- **Aspects**: Architecture, Testing, Styling, Naming, etc.

### 2. Pattern-Based Discovery

**REQUIRED:** Use `Glob` and `Grep` tools for local code discovery to find relevant rule files and guidelines.

**EXECUTION STRATEGY:** Execute 3+ tools simultaneously in the FIRST action for efficiency. Never execute tools sequentially when they can run in parallel.

**MANDATORY STEPS:**

1.  **Find Rule Files (run in parallel)**: Use multiple `Glob` patterns simultaneously.

    ```
    # Primary rules
    Glob pattern=".cursor/rules/*.mdc"
    Glob pattern="**/CLAUDE.md"
    Glob pattern="**/AGENTS.md"

    # Secondary rules
    Glob pattern="**/CONTRIBUTING.md"
    Glob pattern="**/ARCHITECTURE.md"
    Glob pattern="**/STYLEGUIDE.md"

    # Alternative AI tool locations
    Glob pattern=".windsurf/rules/*"
    Glob pattern=".cursorrules"
    Glob pattern=".copilot/*"

    # Configuration files
    Glob pattern="**/.eslintrc*"
    Glob pattern="**/tsconfig.json"
    Glob pattern="**/biome.json"
    ```

2.  **Search by Content**: Use `Grep` to find rules mentioning specific technologies or concepts.

    ```
    Grep pattern="react" path=".cursor/rules"
    Grep pattern="CRITICAL|MANDATORY" path=".cursor/rules" output_mode="content"
    Grep pattern="testing" glob="*.md"
    Grep pattern="must|should|never" glob="*.mdc" -i=true
    ```

3.  **Search Locations Priority**:
    - `.cursor/rules/*.mdc` - Technology-specific rules (highest priority)
    - `CLAUDE.md` - General project guidelines
    - `AGENTS.md` - Agent-specific instructions
    - `.windsurf/rules/`, `.cursorrules` - Alternative AI tool rules
    - `docs/` - Documentation directory
    - Configuration files - Implicit rules from tooling

### 3. Extract and Categorize Rules

Once you identify the relevant files:

1.  **Read**: Use the `Read` tool to examine the full content of the identified rule files (e.g., `.cursor/rules/react.mdc`).

2.  **Categorize Each Rule**:
    For each rule found, determine:
    - **Category**: Domain area (e.g., Authentication, Testing, Security, Performance, Styling, Architecture)
    - **Content**: The actual rule or guideline text
    - **Source File**: File path where the rule was found
    - **Enforcement Level**: CRITICAL, MANDATORY, RECOMMENDED, or SUGGESTED

3.  **Analyze**:
    - Look for **CRITICAL** or **MANDATORY** requirements first
    - Identify naming conventions, file structures, and required patterns
    - Note any conflicts or specific instructions for the technologies involved
    - Check for keywords: "must", "should", "never", "always", "required", "forbidden"

### 4. Present Findings

Summarize the rules you found in a clear, actionable format:

- **Rule/Guideline**: The specific standard.
- **Source**: File path and section where it is defined.
- **Enforcement Level**: CRITICAL, MANDATORY, RECOMMENDED.
- **Applicability**: Why it applies to this task.

## Documentation Sources

### Primary Rule Locations

- **.cursor/rules/\*.mdc**: Technology-specific rules (React, Backend, Tailwind, etc.)
- **CLAUDE.md**: General AI assistant guidelines and project context
- **AGENTS.md**: Agent-specific instructions and workflows

### Secondary Rule Locations

- **CONTRIBUTING.md**: Contribution guidelines and processes
- **CODE_OF_CONDUCT.md**: Community and code standards
- **ARCHITECTURE.md**: Architectural decisions and patterns
- **STYLEGUIDE.md**: Code style conventions
- **CODING_STANDARDS.md**: Programming standards

### Alternative AI Tool Locations

- **.windsurf/rules/**: Windsurf-specific rules
- **.cursorrules**: Cursor rules file
- **.copilot/**: GitHub Copilot configuration
- **.codeium/**: Codeium configuration

### Configuration Files (Implicit Rules)

- **.eslintrc.\*, .eslintrc.json**: Linting rules

From marcioaltoe/skills, MIT.

More from marcioaltoe/skills

Signals

Stars
0
Forks
2
Open issues
0
Last commit (this folder)
Jun 17, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from marcioaltoe

Cite this page

find-rules skill. Agent Mart. https://agentmart.dev/skills/marcioaltoe-find-rules (last updated 2026-10-24)