agentleFS
mohitmishra786mohitmishra786/low-level-dev-skills/AGENTS.md

low-level-dev-skills

AGENTS.md290 starsChanged 7 months agoMITView on GitHub

Guidelines for AI agents working in this repository. A curated suite of AI agent skills for systems and low-level C/C++ development toolchains. Each skill is a markdown file following the SKILL.md format. Skills are organized by category and cross-reference each other. Each skill has a SKILL.md file and optional references/ for detailed content. Every SKILL.md must have: bash # Comment explains purpose gcc -Wall -Wextra -O2 -o prog main.c Question? ├── Yes → Action A └── No → Action B

The file

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

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Every SKILL.md must have:

    line 59
  2. Distinctive:

    Use backticks for skill references:

    line 81
  3. Distinctive:

    Add required sections (Purpose, Triggers, Workflow, Related skills)

    line 131
  4. Very specific:

    Create references/ if content exceeds 500 lines

    line 132
  5. Distinctive:

    Update README.md skills table

    line 133
  6. Distinctive:

    Add cross-references from 2+ related skills

    line 134
  7. Distinctive:

    Keep body under 500 lines

    line 138
  8. Very specific:

    Verify frontmatter has name and description

    line 146
  9. Distinctive:

    Check all code blocks have language tags

    line 147
  10. Distinctive:

    Ensure Related skills section has 2+ entries

    line 149

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

Guidelines for AI agents working in this repository.

Project Overview

A curated suite of AI agent skills for systems and low-level C/C++ development toolchains. Each skill is a markdown file following the SKILL.md format. Skills are organized by category and cross-reference each other.

Repository Structure

skills/
├── compilers/        # gcc, clang, llvm, msvc-cl, cross-gcc
├── debuggers/        # gdb, lldb, core-dumps
├── profilers/        # linux-perf, valgrind, flamegraphs
├── build-systems/    # cmake, make, ninja
├── binaries/         # elf-inspection, linkers-lto, binutils
├── runtimes/         # sanitizers, fuzzing
└── low-level-programming/  # assembly-x86, assembly-arm, interpreters

Each skill has a SKILL.md file and optional references/ for detailed content.

Validation Commands

# Validate markdown formatting (requires markdownlint-cli)
markdownlint skills/**/*.md

# Check skill frontmatter is valid YAML
head -5 skills/compilers/gcc/SKILL.md

# Verify all skills have required sections
grep -l "## Purpose" skills/**/SKILL.md | wc -l
grep -l "## Triggers" skills/**/SKILL.md | wc -l
grep -l "## Workflow" skills/**/SKILL.md | wc -l
grep -l "## Related" skills/**/SKILL.md | wc -l

# Check cross-reference format (should use backticks, not links)
grep -r "skills/[a-z]" skills/ --include="*.md" | grep -v "`skills/"

SKILL.md Format

YAML Frontmatter

---
name: skill-name
description: <skill-name> skill for <domain>. Use when <scenarios>. Activates on <triggers>.
---
  • name: Lowercase, hyphen-separated, matches directory name
  • description: Must include "Use when" and "Activates on" clauses

Required Sections

Every SKILL.md must have:

  1. Purpose (1-2 sentences): What the skill does
  2. Triggers (4-6 items): User query patterns that activate this skill
  3. Workflow (numbered subsections): Step-by-step guidance with:
    • Decision trees (ASCII in code blocks)
    • Command tables
    • Code examples with language tags
    • Error/symptom tables
  4. Related skills (2+ references): Cross-references using backtick format

Code Style Guidelines

Markdown

  • Maximum body: 500 lines (put exhaustive lists in references/)
  • Code blocks: Always include language tag (```bash, ```c, ```cmake)
  • Tables: Pipe syntax with header separator
  • Lists: - for unordered, 1. for ordered

Cross-References

Use backticks for skill references:

  • Correct: skills/compilers/gcc
  • Incorrect: "the gcc skill" or [gcc](skills/compilers/gcc)

For internal references: [references/flags.md](references/flags.md)

Naming Conventions

  • Skill directories: lowercase, hyphen-separated (linux-perf, cross-gcc)
  • SKILL.md: always uppercase
  • Reference files: lowercase with extension (flags.md, cheatsheet.md)

Code Examples

Code examples should be:

  • Complete and compilable where possible
  • Annotated with comments explaining purpose
  • Grouped with blank lines between related commands
# Comment explains purpose
gcc -Wall -Wextra -O2 -o prog main.c

# Related command follows blank line
./prog

Tables

CommandEffect
cmdDescription
SymptomCauseFix
Error messageRoot causeResolution

Decision Trees

Question?
├── Yes → Action A
└── No  → Action B

Common Workflows

Adding a New Skill

  1. Create skills/<category>/<skill-name>/SKILL.md
  2. Add required sections (Purpose, Triggers, Workflow, Related skills)
  3. Create references/ if content exceeds 500 lines
  4. Update README.md skills table
  5. Add cross-references from 2+ related skills

Updating an Existing Skill

  1. Keep body under 500 lines
  2. Move exhaustive flag lists to references/
  3. Maintain numbered workflow subsections
  4. Preserve existing cross-references

Validating Changes

  1. Run markdownlint skills/**/*.md
  2. Verify frontmatter has name and description
  3. Check all code blocks have language tags
  4. Confirm cross-references use backtick format
  5. Ensure Related skills section has 2+ entries

Quality Checklist

  • Frontmatter: name and description fields present
  • Description: includes "Use when" and "Activates on"
  • Purpose: 1-2 sentences
  • Triggers: 4-6 user query patterns
  • Workflow: numbered subsections (1, 2, 3...)
  • Code blocks: language tags included
  • Related skills: 2+ references in backtick format
  • Body length: under 500 lines

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.