agentleFS
MaxwellCalkinMaxwellCalkin/Autobot/.claude/skills/quality-gates/SKILL.md

quality-gates

Skill0 starsChanged 10 months agoMITView on GitHub

Quality checkpoints required before marking work complete

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan and research.

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.
  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 16 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All tests must pass (exit code 0)

    line 18
  2. Distinctive:

    No skipped tests for new code

    line 19
  3. Distinctive:

    Test output should be clean (no warnings about coverage)

    line 20
  4. Distinctive:

    Run the test suite to establish baseline

    line 23
  5. Distinctive:

    Ensure you're not starting with failing tests

    line 24
  6. Distinctive:

    No type errors in modified files

    line 56
  7. Distinctive:

    No implicit any (TypeScript strict mode)

    line 57
  8. Distinctive:

    After completing all subtasks

    line 99
  9. Distinctive:

    Before marking a subtask complete:

    line 108
  10. Very specific:

    Before writing EXIT_SIGNAL: COMPLETE:

    line 123
  11. Distinctive:

    Read the error message carefully

    line 139
  12. Very specific:

    Check .autobot/observations.jsonl for similar failures

    line 140
  13. Distinctive:

    Use the fixer subagent if stuck after 2 attempts

    line 141
  14. Very specific:

    Document the fix in .autobot/progress.md

    line 142
  15. Distinctive:

    If rule seems wrong, document why in comments

    line 148
  16. Very specific:

    Don't use any to silence errors

    line 152
  17. Distinctive:

    Add proper type annotations

    line 153
  18. Distinctive:

    Use type guards for narrowing

    line 154
  19. Distinctive:

    Check if types are outdated

    line 155
  20. Distinctive:

    Use these to identify patterns:

    line 170

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

Quality Gates

Overview

Quality gates are mandatory checkpoints that must pass before work can be considered complete. Autobot enforces these automatically via hooks, but understanding them helps you write code that passes on the first try.

Gate 1: Tests Pass

Command: Auto-detected (npm test, pytest, cargo test, go test)

Requirements:

  • All tests must pass (exit code 0)
  • No skipped tests for new code
  • Test output should be clean (no warnings about coverage)

Before You Code:

  • Run the test suite to establish baseline
  • Ensure you're not starting with failing tests

Common Failures:

  • Forgot to update snapshots
  • Async tests not properly awaited
  • Environment variables not set in test

Gate 2: No Linting Errors

Command: Project-specific (npm run lint, flake8, cargo clippy)

Requirements:

  • Zero errors in modified files
  • Warnings should be addressed if feasible
  • New code should not introduce new warnings

Autofix Available:

  • npm run lint -- --fix
  • black . (Python)
  • cargo fmt (Rust)

Common Failures:

  • Unused imports
  • Inconsistent formatting
  • Missing semicolons (JS)
  • Line too long

Gate 3: Type Check (if applicable)

Command: npm run typecheck, mypy, cargo check

Requirements:

  • No type errors in modified files
  • No implicit any (TypeScript strict mode)
  • Generic types properly constrained

Common Failures:

  • Missing return type
  • Null/undefined not handled
  • Wrong generic type argument

Gate 4: Documentation

Requirements:

  • Public APIs have JSDoc/docstrings
  • Complex logic has inline comments
  • README updated for user-facing changes
  • CHANGELOG updated for releases

What Needs Docs:

// Public function - needs JSDoc
/**
 * Creates a new user with the given properties.
 * @param props - User properties including email and name
 * @returns The created user with generated ID
 * @throws {ValidationError} If email is invalid
 */
export function createUser(props: UserProps): User {

What Doesn't Need Docs:

// Private helper - self-explanatory name is enough
function isValidEmail(email: string): boolean {
  return EMAIL_REGEX.test(email);
}

Gate 5: Code Review (Optional)

When to Use:

  • Complex or critical changes
  • Security-sensitive code
  • Public API changes
  • After completing all subtasks

Use the Reviewer Subagent:

/task reviewer "Review the completed authentication subtask"

Subtask Completion Checklist

Before marking a subtask complete:

- [ ] All acceptance criteria met
- [ ] Tests written and passing
- [ ] No linting errors
- [ ] No type errors
- [ ] Complex logic commented
- [ ] No TODOs referencing this subtask
- [ ] No console.log/print statements left in
- [ ] No hardcoded values that should be config

Task Completion Checklist

Before writing EXIT_SIGNAL: COMPLETE:

- [ ] All subtasks marked complete
- [ ] Full test suite passes
- [ ] Integration tests pass (if any)
- [ ] No regression in existing functionality
- [ ] Documentation updated
- [ ] Code reviewed (for complex tasks)
- [ ] Ready for production

Failure Recovery

Tests Failing

  1. Read the error message carefully
  2. Check .autobot/observations.jsonl for similar failures
  3. Use the fixer subagent if stuck after 2 attempts
  4. Document the fix in .autobot/progress.md

Lint Errors

  1. Run autofix first
  2. Fix remaining errors manually
  3. If rule seems wrong, document why in comments

Type Errors

  1. Don't use any to silence errors
  2. Add proper type annotations
  3. Use type guards for narrowing
  4. Check if types are outdated

Metrics Tracked

The hooks track quality metrics in .autobot/metrics.json:

{
  "total_test_runs": 45,
  "total_test_passes": 42,
  "total_test_failures": 3,
  "consecutive_test_failures": 0
}

Use these to identify patterns:

  • High failure rate → tests too fragile or code quality issues
  • Many consecutive failures → fundamental misunderstanding

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.