agentleFS
mintuzmintuz/skills/AGENTS.md

skills

AGENTS.md29 starsChanged 3 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. Codex plugin marketplace containing seven plugins for software development and personal productivity workflows: Plugins extend Codex with three types of content: The marketplace registry (.Codex-plugin/marketplace.json) indexes all plugins, while each plugin's manifest (plugin.json) defines metadata. Skills listed in marketplace.json become user-invocable (e.g., /skill core:commit-messages), while unlisted skills are only loaded by other skills or agents. Each plugin follows this structure: Agents are markdown files with YAML…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 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 repository2 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, 1 is distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Treat every skill change as TDD.

    line 116
  2. Very specific:

    GREEN — make the minimum skill change: Update the skill only enough to pass the new case, then rerun pnpm test:skills -- [skill-name].

    line 119
  3. Very specific:

    COMPARE — prove the improvement: Run pnpm eval:skills -- [skill-name] and inspect the no-skill baseline beside the skill treatment.

    line 120
  4. Very specific:

    New Agent: Create .md in src/[plugin]/agents/ with frontmatter

    line 138
  5. Very specific:

    New Skill: Create src/[plugin]/skills/[skill-name]/SKILL.md with frontmatter

    line 140
  6. Very specific:

    New Command: Create .md in src/[plugin]/commands/

    line 142
  7. Very specific:

    Create src/[plugin-name]/.Codex-plugin/plugin.json with name, version, description, author, repository, license, keywords

    line 145
  8. Very specific:

    Add entry to .Codex-plugin/marketplace.json:

    line 146
  9. Very specific:

    Create agents/, skills/, and/or commands/ directories as needed

    line 155
  10. Very specific:

    Add .mcp.json if the plugin requires MCP servers

    line 156
  11. Very specific:

    When creating skills that build on others, include a "Prerequisites" section at the top.

    line 177
  12. Distinctive:

    Use the WHEN/NOT pattern for skill and agent descriptions:

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Project Overview

Codex plugin marketplace containing seven plugins for software development and personal productivity workflows:

  • core – memory, commit hygiene, refactoring, prompt refinement, and branch review
  • web – CSS, React, Tailwind, testing, refactoring, and design practices
  • typescript – strict, schema-first TypeScript guidance
  • system-design – Mermaid diagram generation from code
  • product-management – PRD creation, status updates, and task orchestration
  • app – Swift iOS testing, App Intent-first development, and SwiftUI architecture
  • life – personal life management with GPS method for goal achievement

Plugin Architecture

Plugins extend Codex with three types of content:

  1. Agents - Autonomous subprocesses with specialized tools and context (defined in agents/*.md)
  2. Skills - Knowledge bases that load into context (defined in skills/*/SKILL.md)
  3. Commands - Slash commands for quick actions (defined in commands/*.md)

The marketplace registry (.Codex-plugin/marketplace.json) indexes all plugins, while each plugin's manifest (plugin.json) defines metadata. Skills listed in marketplace.json become user-invocable (e.g., /skill core:commit-messages), while unlisted skills are only loaded by other skills or agents.

Repository Structure

.Codex-plugin/marketplace.json    # Marketplace registry (plugin metadata)
src/
  core/
    .Codex-plugin/plugin.json
    agents/                        # compare-branch, refactor
    skills/                        # commit-messages, learn, pr, writing, yagni
  web/
    .Codex-plugin/plugin.json
    skills/                        # css, frontend-testing, react, react-testing, refactoring, tdd, web-design
  typescript/
    .Codex-plugin/plugin.json
    skills/                        # typescript-best-practices
  system-design/
    .Codex-plugin/plugin.json
    skills/                        # mermaid-generator
  product-management/
    .Codex-plugin/plugin.json
  app/
    .Codex-plugin/plugin.json
    skills/                        # app-intent-driven-development, swift-testing

Each plugin follows this structure:

src/[plugin-name]/
  .Codex-plugin/plugin.json       # Plugin manifest (name, version, description)
  agents/                          # Agent definitions (*.md files with YAML frontmatter)
  skills/[skill-name]/SKILL.md     # Knowledge bases
  commands/                        # Slash commands (*.md files)

Agent Definition Format

Agents are markdown files with YAML frontmatter in src/[plugin]/agents/:

---
name: agent-name
description: >
  When to use this agent
tools: Read, Grep, Glob, Bash
model: sonnet
color: pink
---

# Agent Title

Agent instructions...

Required: name, description, tools Optional: model (sonnet/opus/haiku), color

Command Definition Format

Commands live in src/[plugin]/commands/ and include a short YAML header:

---
description: What the command does
argument-hint: <argument format>
---

# @command-name

Usage details...

Skill Definition Format

Skills are SKILL.md files in src/[plugin]/skills/[skill-name]/:

---
name: skill-name
description: >
  When to use this skill
---

# Skill Title

Knowledge base content...

Test-Driven Skill Changes

Treat every skill change as TDD. Its Promptfoo suite at evals/[skill-name]/promptfooconfig.yaml is the executable specification; create the suite from the existing examples if it does not exist.

  1. RED — record the use case first. Before editing the skill, add a realistic test whose scenario captures the new or changed use case and whose rubric defines observable success. Run pnpm eval:skills:check -- [skill-name], then pnpm test:skills -- [skill-name] against the unchanged skill. The new case must fail; a pass means the skill already covers the case or the scenario does not expose the gap.
  2. GREEN — make the minimum skill change. Update the skill only enough to pass the new case, then rerun pnpm test:skills -- [skill-name]. Every existing case and the new case must pass.
  3. COMPARE — prove the improvement. Run pnpm eval:skills -- [skill-name] and inspect the no-skill baseline beside the skill treatment. The treatment must improve the intended case without reducing performance on existing cases. The comparison command is informational, so inspect its results rather than relying on its exit code.

Existing scenarios and assertions are the regression contract. Preserve them unless the requirement itself changed. For trigger or description changes, also add the disposable skill fixture and skill-used assertion described in scripts/README.md.

A skill change is complete only when the Promptfoo config records the new scenario and rubric, configuration validation passes, all treatment tests pass, and the comparison demonstrates the intended gain without regression.

Available Content Snapshot

  • core: agents compare-branch, refactor; skills acceptance-review, commit-messages, gauntlet-loop, learn, pr, pseudocode, reducer, ship-pr, writing, wtf, yagni
  • web: skills css, frontend-testing, react, xstate, react-testing, refactoring, tdd, web-design, tailwind, eyes, chatgpt-app-sdk
  • typescript: skill typescript-best-practices
  • system-design: skill mermaid-generator
  • product-management: skills status-updates
  • app: skills app-intent-driven-development, app-store-keyword-ops, app-store-scraper, asc-screenshots, debug, ios-localize-copy, local-ai-models, swift-testing, swiftui-architecture, xcode-dev-loop
  • life: skill gps-method

Adding New Content

New Agent: Create .md in src/[plugin]/agents/ with frontmatter

New Skill: Create src/[plugin]/skills/[skill-name]/SKILL.md with frontmatter

New Command: Create .md in src/[plugin]/commands/

New Plugin:

  1. Create src/[plugin-name]/.Codex-plugin/plugin.json with name, version, description, author, repository, license, keywords
  2. Add entry to .Codex-plugin/marketplace.json:
    {
      "name": "plugin-name",
      "source": "./src/plugin-name",
      "description": "...",
      "skills": ["./skills/skill-name"]  // Optional, only for user-invocable skills
    }
  3. Create agents/, skills/, and/or commands/ directories as needed
  4. Add .mcp.json if the plugin requires MCP servers

Version Bumping

Increment version in the relevant plugin.json following semver when updating plugins.

MCP Server Integrations

Some plugins include MCP server configurations in .mcp.json:

  • core - Memory MCP (@modelcontextprotocol/server-memory)
  • product-management - Task Master AI MCP for task orchestration workflows

These servers auto-load when the plugin is active.

Skill Cross-References

Skills can reference other skills as prerequisites. For example:

  • web:tailwind loads web:css, web:react, typescript:skills, and web:web-design
  • app:swiftui-architecture works alongside app:swift-testing and app:app-intent-driven-development

When creating skills that build on others, include a "Prerequisites" section at the top.

Description Naming Convention

Use the WHEN/NOT pattern for skill and agent descriptions:

WHEN [trigger condition]; NOT [exclusion]; [output or behavior]

Examples:

  • WHEN writing git/conventional commits; NOT for PR text; returns concise, why-first commit lines
  • WHEN building SwiftUI views; NOT for UIKit or legacy patterns; provides pure SwiftUI data flow

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.