agentleFS
reaatechreaatech/agents-md-kit/skills/linting/skill.md

linting

Skill2 starsChanged 6 months agoMITView on GitHub

Style and structure linting rules for agent documentation

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. jiatastic/open-python-skills★ 9same name
    2. int2t05/engineering-skills★ 3same name
    3. parisneto/anticharon★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    User intent: Check an AGENTS.md file for style and quality issues

    line 25
  2. Very specific:

    All 18 rules run. Findings with autoFixable: true (trailing-whitespace, no-code-language, table-format, heading-missing) include fix …

    line 80
  3. Distinctive:

    Never log file content — only report issues with line numbers

    line 139
  4. Distinctive:

    Don't include file content in error messages or traces

    line 140
  5. Distinctive:

    Read-only access for linting (no write without explicit consent)

    line 145

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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
skill.md

Linting

Capability

Applies style, content, and best-practice linting rules to AGENTS.md and SKILL.md files to ensure quality, consistency, and adherence to community standards. Ships with 18 built-in rules across three categories, plus an extensible rule registry and auto-fix engine.

MCP Tools

ToolInput SchemaOutputRate Limit
lint_agents_mdz.object({ filePath: z.string().optional(), content: z.string().optional(), severity: z.enum(['error','warning','info','suggestion']).optional() }){ path: string, findings: Finding[], errorCount: number, warningCount: number, infoCount: number, fixableCount: number }60 RPM

Usage Examples

Example 1: Lint a single file

  • User intent: Check an AGENTS.md file for style and quality issues
  • Tool call:
    {
      "name": "lint_agents_md",
      "arguments": {
        "filePath": "./agents/my-agent/AGENTS.md",
        "severity": "warning"
      }
    }
  • Expected response:
    {
      "errorCount": 0,
      "warningCount": 3,
      "infoCount": 2,
      "findings": [
        {
          "ruleId": "heading-order",
          "severity": "warning",
          "message": "Heading level skipped from h2 to h4",
          "line": 23
        },
        {
          "ruleId": "no-code-language",
          "severity": "warning",
          "message": "Code block missing language identifier",
          "line": 45
        },
        {
          "ruleId": "trailing-whitespace",
          "severity": "info",
          "message": "Trailing whitespace detected",
          "line": 12
        }
      ]
    }

Example 2: Lint with auto-fix via CLI

  • User intent: Automatically fix all fixable linting issues
  • Tool call:
    {
      "name": "lint_agents_md",
      "arguments": {
        "filePath": "./agents/my-agent/AGENTS.md",
        "severity": "suggestion"
      }
    }
  • Expected response:

    All 18 rules run. Findings with autoFixable: true (trailing-whitespace, no-code-language, table-format, heading-missing) include fix payloads. Apply fixes via the CLI format --fix command or the runAutoFix library function.

Lint Rules Reference

Style Rules

Rule IDSeverityAuto-fixDescription
heading-orderwarningNoHeading levels must not be skipped
no-code-languagewarningYesCode blocks should specify a language
trailing-whitespaceinfoYesLines must not have trailing whitespace
line-too-longinfoNoLines must not exceed 120 characters
table-formatwarningYesTable rows must have consistent column counts
list-formatwarningNoList markers must be consistent

Content Rules

Rule IDSeverityAuto-fixDescription
heading-missingerrorYesRequired section headings must be present
empty-sectionwarningNoSections must contain content
placeholder-textwarningNoNo TODO/FIXME placeholders
duplicate-sectionerrorNoSection titles must be unique
broken-skill-referrorNoReferenced skill files must exist
duplicate-skill-iderrorNoSkill IDs must be unique
section-orderingwarningNoSections should follow recommended order
min-content-lengthwarningNoSections should have minimum content

Best Practice Rules

Rule IDSeverityAuto-fixDescription
missing-pii-mentionwarningNoSecurity section should mention PII
missing-observabilitywarningNoObservability section should mention structured logging
incomplete-exampleswarningNoUsage examples should include error cases
missing-mcp-schemawarningNoMCP tools should document input schemas
missing-confidenceerrorNoAgent config must include confidence_threshold

Error Handling

Known Failure Modes

FailureCauseRecovery
File not foundPath doesn't existReturn error with suggestion to check path
Permission deniedNo read accessReturn error suggesting permission fix
Parse errorInvalid markdownReturn error with line number
Too many filesDirectory has 1000+ filesSuggest using filters or patterns

Recovery Strategies

  • Permission issues: Suggest running with appropriate permissions
  • Parse errors: Show the problematic section with context
  • Large directories: Suggest using file patterns to scope the lint run

Security Considerations

PII Handling

  • Never log file content — only report issues with line numbers
  • Don't include file content in error messages or traces
  • Redact file paths that might contain sensitive information

Permissions

  • Read-only access for linting (no write without explicit consent)
  • Auto-fix via format --fix command with explicit user consent
  • Dry-run mode available via --dry-run flag

Audit Logging

  • Log all lint operations with file paths and result counts
  • Include request_id for tracing
  • Track lint duration and rules executed

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.