agentleFS
shawn-sandyshawn-sandy/claude-code/AGENTS.md

claude-code

AGENTS.md1 starsChanged 12 months agoMITView on GitHub

Instructions for AI assistants working in this project with Cursor IDE. This is a Claude Code plugins workspace for developing and managing AI assistant extensions, skills, and hooks. When creating or modifying plugins: Use conventional commits: Types: feat, fix, docs, style, refactor, test, chore These instructions are for AI assistants working in this project. Always open @/openspec/AGENTS.md when the request: Use @/openspec/AGENTS.md to learn: Keep this managed block so 'openspec update' can refresh the instructions. This workspace has access to:

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When creating or modifying plugins:

    line 47
  2. Very specific:

    Follow the structure in plugins/starter-plugin/ as a template

    line 49
  3. Very specific:

    Create agent definitions in agents/ subdirectory

    line 50
  4. Very specific:

    Document skills in skills/[skill-name]/SKILL.md

    line 53
  5. Distinctive:

    Use meaningful variable and function names

    line 57
  6. Distinctive:

    Document functions with JSDoc comments

    line 58
  7. Very specific:

    Prefer explicit types over any

    line 59
  8. Distinctive:

    Keep functions small and focused

    line 60
  9. Distinctive:

    Write tests for new functionality

    line 61
  10. Very specific:

    Always open @/openspec/AGENTS.md when the request:

    line 83
  11. Very specific:

    Use @/openspec/AGENTS.md to learn:

    line 89
  12. Distinctive:

    Keep this managed block so 'openspec update' can refresh the instructions.

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AI Agent Instructions for Cursor

Instructions for AI assistants working in this project with Cursor IDE.

Project Overview

This is a Claude Code plugins workspace for developing and managing AI assistant extensions, skills, and hooks.

Quick Start for Cursor

  1. Read openspec/project.md for project conventions before making changes
  2. Check plugins/ directory for existing plugin structure and patterns
  3. Use conventional commits for all git operations
  4. Follow TypeScript for type safety when applicable

Technology Stack

  • Documentation: Markdown
  • Type Safety: TypeScript
  • UI Components: React (when applicable)
  • Styling: CSS Modules or SASS/SCSS (no Tailwind)
  • Testing: Playwright for E2E
  • Code Quality: ESLint + Prettier
  • Documentation: JSDoc for functions, classes, and components

Directory Structure

claude-code/
├── AGENTS.md              # This file - AI instructions
├── openspec/              # Spec-driven development
│   ├── AGENTS.md          # Detailed OpenSpec instructions
│   ├── project.md         # Project conventions
│   ├── specs/             # Current specifications
│   └── changes/           # Proposed changes
├── plugins/               # Plugin implementations
│   └── starter-plugin/    # Example plugin structure
│       ├── agents/        # Agent definitions
│       ├── commands/      # Slash commands
│       ├── hooks/         # Hook configurations
│       └── skills/        # Skill definitions
└── plans/                 # Planning documents

Working with Plugins

When creating or modifying plugins:

  1. Follow the structure in plugins/starter-plugin/ as a template
  2. Create agent definitions in agents/ subdirectory
  3. Define commands in commands/ as Markdown files
  4. Configure hooks in hooks/hooks.json
  5. Document skills in skills/[skill-name]/SKILL.md

Code Style Guidelines

  • Use meaningful variable and function names
  • Document functions with JSDoc comments
  • Prefer explicit types over any
  • Keep functions small and focused
  • Write tests for new functionality

Commit Message Format

Use conventional commits:

type(scope): description

[optional body]

[optional footer]

Types: feat, fix, docs, style, refactor, test, chore

<!-- OPENSPEC:START -->

OpenSpec Instructions

These instructions are for AI assistants working in this project.

Always open @/openspec/AGENTS.md when the request:

  • Mentions planning or proposals (words like proposal, spec, change, plan)
  • Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
  • Sounds ambiguous and you need the authoritative spec before coding

Use @/openspec/AGENTS.md to learn:

  • How to create and apply change proposals
  • Spec format and conventions
  • Project structure and guidelines

Keep this managed block so 'openspec update' can refresh the instructions.

<!-- OPENSPEC:END -->

MCP Tools Available

This workspace has access to:

  • Playwright: Browser automation and testing
  • Context7: Up-to-date library documentation
  • Supabase: Database operations
  • Browser: Frontend testing and interaction

Best Practices

Before Making Changes

  • Understand the existing code structure
  • Check for related specs in openspec/specs/
  • Review active changes in openspec/changes/
  • Follow established patterns in the codebase

When Writing Code

  • Use TypeScript for type safety
  • Add JSDoc documentation
  • Follow existing code style
  • Keep changes focused and minimal

After Making Changes

  • Run linting (eslint)
  • Format code (prettier)
  • Write tests for new functionality
  • Use conventional commit messages

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.