agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/validate/SKILL.md

validate

Skill2 starsChanged 6 months agoMITView on GitHub

Validate built code against project standards and conventions. Checks coding standards, test quality, naming, formatting, and configuration. Use after implementation to catch issues before committing.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use explore, worktree and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 3 projects that use this

  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 6 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 8 projects that use this

  • SentrySkill

    onboard

    Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 1

    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:

    If this fails, list which files need formatting.

    line 77
  2. Very specific:

    Verify all rules in .claude/rules/auth-security.md and .claude/rules/data-protection.md are satisfied.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 33 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

Validate

Validate code against project standards and conventions. Runs all checks and produces a report.

Usage

/validate TICKET-1234          # Validate files for a specific ticket
/validate                      # Validate all uncommitted changes

Process

  1. Identify changed files — scope to ticket or all uncommitted changes
  2. Load domain references — based on what's touched
  3. Run all checks — see check matrix below
  4. Output report — checklist with ERROR/WARN/PASSED counts

Identifying Changed Files

Ticket-scoped (ID provided):

git diff --name-only origin/{{BASE_BRANCH}}...HEAD

Filter to files matching the ticket. Also check docs/stories/{TICKET_ID}/.

All uncommitted (no ID):

git diff --name-only HEAD
git diff --name-only --cached

Check Matrix

IMPORTANT: Customize this section for your project. The checks below are templates — replace with your actual coding standards.

Code Standards (ERROR)

CheckHow to DetectSeverity
Error handling on catch blocksGrep for catch blocks, verify each has proper error trackingERROR
No debug/console.log in productionGrep for debug statements in non-test filesERROR
No commented-out codeGrep for patterns of commented codeWARN
No hardcoded secrets/IDsGrep for patterns matching secrets, IDs, tokensERROR
Test classes/files follow conventionsCheck test file naming and structureERROR
Type conventionsCheck language-specific type usageWARN
No queries/IO in loopsCheck for performance anti-patternsERROR
Constants over magic valuesFlag repeated string/number literalsWARN

Test Quality (ERROR)

CheckHow to DetectSeverity
No inline test data constructionTests should use factories/fixturesERROR
No production data in testsCheck for SeeAllData or equivalentERROR
Uses test helpers/factoriesVerify standard test patterns usedWARN
Adequate assertionsCheck test methods have assertionsWARN

Naming Conventions (WARN)

CheckHow to DetectSeverity
Files follow naming patternCheck against project conventionsWARN
Variables follow style guideCheck casing conventionsWARN

Formatting (ERROR)

{{FORMAT_VERIFY_COMMAND}}

If this fails, list which files need formatting. Do NOT auto-fix — report only.

Configuration / Manifest (ERROR)

CheckHow to DetectSeverity
Ticket manifest existsCheck for ticket-specific config/manifestERROR
Main manifest updatedVerify new components in main configERROR
Version/API consistencyCheck version numbers match project standardERROR

Security (ERROR)

Verify all rules in .claude/rules/auth-security.md and .claude/rules/data-protection.md are satisfied. The checks below are validation-specific detection methods:

CheckHow to DetectSeverity
No real PII in tracked filesgit ls-files | grep -E "\.(db|sqlite|csv|xlsx)" | head -5 — flag any data files in gitERROR
No hardcoded secretsGrep changed files for sk-proj-, sk-org-, AKIA, -----BEGIN.*KEY, password/secret assignments with literal valuesERROR
ignoreBuildErrors not setGrep for ignoreBuildErrors: true or equivalent in build configWARN

Design Consistency (WARN)

Only applies to projects with a design system (theme tokens, component library). Skip this section if the project has no design system configured.

CheckHow to DetectSeverity
No raw Tailwind colors in componentsGrep changed .tsx/.jsx files for text-gray-, bg-blue-, border-red- etc. (exclude theme/token definition files)WARN
No inline SVG iconsGrep changed component files for <svg (exclude icon library, logo, and shared-asset files)WARN
No raw HTML interactive elementsGrep for <button className=, <input className=, <select in feature code (exclude base component definitions)WARN
No manual dark mode on raw colorsGrep for dark:text-gray-, dark:bg-gray-, dark:border-gray- in component filesWARN
Loading states on async sectionsCheck that new <Suspense> boundaries have meaningful fallback UI, not empty or bare "Loading..." textWARN
Empty states are completeNew list/table components should have icon + title + description empty states, not just text stringsWARN
Typography uses design scalePage titles use design system's display text tokens, not raw text-4xl / text-3xlWARN

Domain Reference Loading

Based on changed files, load relevant domain skill references:

Files TouchedLoad References
{domain-specific patterns}.claude/skills/{domain}/references/

Cross-check built components against reference inventories.

Output Report

## Validation Report — {TICKET_ID}

### Summary
- ERRORS: {count}
- WARNINGS: {count}
- PASSED: {count}

### Code Standards
- [x] PASSED — Error handling on all catch blocks
- [ ] ERROR — Debug statement found in ClassName:42
- [x] PASSED — No hardcoded secrets

### Test Quality
- [x] PASSED — Uses test factories
- [ ] ERROR — Inline data construction found in TestFile:15

### Naming
- [x] PASSED — All conventions followed

### Formatting
- [x] PASSED — formatter check clean

### Security
- [x] PASSED — No real PII in tracked files
- [x] PASSED — No hardcoded secrets
- [ ] ERROR — Auth defaults to open when env vars missing (middleware.py:20)
- [ ] ERROR — No CSRF tokens in POST forms
- [x] PASSED — Redirect URLs validated

### Design Consistency
- [x] PASSED — All colors use semantic tokens
- [ ] WARN — Raw `text-gray-500` found in ComponentName:42 — use `text-tertiary`
- [x] PASSED — No inline SVG icons

### Configuration
- [x] PASSED — Manifests correct

Integration with /develop

This skill is called by /develop Phase 5 as a parallel task alongside deployment validation.

Related Skills

  • /develop - Full dev cycle (calls /validate in Phase 5)
  • Domain skills - Project-specific references

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.