agentleFS
martincjarvismartincjarvis/development-skills/skills/automated-standards-enforcement/SKILL.md

automated-standards-enforcement

Skill4 starsChanged 10 months agoMITView on GitHub

Use when creating or modifying any repository to establish automated quality enforcement (linting, spelling, tests, SAST, security). Applies by default unless user explicitly refuses. Ensures clean build policy with minimal developer friction.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    Use this matrix to select the appropriate bootstrapping skill:

    line 19
  2. Distinctive:

    Only need repo security/compliance (use repo-best-practices-bootstrap)

    line 45
  3. Distinctive:

    Run baseline to identify existing violations

    line 86
  4. Very specific:

    Document in docs/known-issues.md with counts

    line 87
  5. Distinctive:

    Use pre-built CI workflow templates for common platforms:

    line 106
  6. Distinctive:

    Commit and verify workflow runs

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Automated Standards Enforcement

Overview

P0 Foundational - Applies by default. Zero-warning clean builds. Baseline for brownfield.

REQUIRED: superpowers:verification-before-completion, superpowers:test-driven-development

Bootstrapping Skills Decision Matrix

Use this matrix to select the appropriate bootstrapping skill:

If You Need To...Use This Skill
Start a new project from scratchgreenfield-baseline
Add/audit quality tooling (linting, tests, SAST)automated-standards-enforcement (this)
Add/audit repo security (branch protection, secret scanning)repo-best-practices-bootstrap

Skill Scope Comparison

Aspectgreenfield-baselineautomated-standards-enforcementrepo-best-practices-bootstrap
Primary FocusProject foundationQuality toolingRepo security/compliance
Project StateNew (no existing code)New or existingNew or existing
OutputsRepo structure, CI/CD, docsLinting, tests, SAST configBranch rules, secrets config
TriggersEntry point for new projectsAuto-triggered or standaloneUse after structure exists

Invocation Context

  • Greenfield projects: Auto-triggered by greenfield-baseline
  • Brownfield projects: Invoke directly with brownfield approach
  • Existing repos: Invoke directly for quality tooling audit/addition

Do NOT Use This Skill When

  • Starting a brand new project (use greenfield-baseline, which triggers this skill)
  • Only need repo security/compliance (use repo-best-practices-bootstrap)
  • Quality tooling already exists and passes (no changes needed)

When to Use

  • Creating/modifying repository
  • Opt-out: User explicitly refuses

Core Workflow

  1. Announce skill (default for all repos)
  2. Identify: linting, spelling, tests, SAST, security
  3. Map to tools (Tool Comparison)
  4. Enforce: pre-commit hooks + CI
  5. Single-command local run (npm run validate)
  6. Document in README.md
  7. Clean build (zero warnings)
  8. Exceptions: docs/known-issues.md
  9. IDE integrations (IDE Integration)
  10. Brownfield: baseline, enforce on new code

Quick Reference

StandardTypical ToolsEnforcement
LintingESLint, Ruff, dotnet-formatPre-commit + CI
FormattingPrettier, BlackPre-commit
SpellingcspellPre-commit + CI
TestsJest, pytest, xUnitCI (coverage gates)
Securitynpm-audit, bandit, SASTCI

See Language Configs for ecosystem-specific setup.

Clean Build Policy

Zero warnings/errors required. Exceptions documented in docs/known-issues.md with justification and remediation plan. See Git Hooks Setup and CI Configuration for enforcement.

Brownfield Approach

  1. Run baseline to identify existing violations
  2. Document in docs/known-issues.md with counts
  3. Pre-commit: check modified files only
  4. CI: document baseline exceptions
  5. Incremental remediation over time

Red Flags - STOP

  • "Can add linting later"
  • "MVP doesn't need quality checks"
  • "Too many violations to fix"
  • "Hooks slow development"
  • "Clean build too strict"

All mean: Apply brownfield approach or document explicit opt-out.

See Tool Comparison for selection guidance.

Reference CI Workflow Templates

Use pre-built CI workflow templates for common platforms:

PlatformTemplateDescription
GitHub Actionstemplates/github-lint-workflow.yml.templateLint and format check
GitHub Actionstemplates/github-security-workflow.yml.templateSecurity scanning
Azure DevOpstemplates/azure-pipelines-lint.yml.templateLint pipeline

Using Templates

  1. Copy template to .github/workflows/ or pipeline directory
  2. Replace {LANGUAGE} with your primary language (node, dotnet, python)
  3. Adjust tool commands to match your package.json / Makefile scripts
  4. Commit and verify workflow runs

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.