agentleFS
danielvoglerdanielvogler/ai-skills-library/.agents/skills/final-checks/SKILL.md

final-checks

Skill0 starsChanged 6 months agoMITView on GitHub

Perform rigorous final checks before committing (tests, linters, formatters, secrets, artifacts).

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not guess. Do not assume.

    line 9
  2. Distinctive:

    Run the project's standard static analysis checks.

    line 12
  3. Distinctive:

    Formatters: Check if files adhere to the project's formatting rules.

    line 14
  4. Distinctive:

    Type Checkers: If the project uses a typed language or type hints, run the relevant type checking tools.

    line 15
  5. Distinctive:

    Ensure that recent changes have not broken existing functionality.

    line 18
  6. Distinctive:

    If the project uses a build system, Makefile, or task runner:

    line 23
  7. Distinctive:

    Ensure that the project builds cleanly.

    line 25
  8. Distinctive:

    Ensure no sensitive data is being committed.

    line 28
  9. Distinctive:

    Search the diff and untracked files for:

    line 29
  10. Distinctive:

    Check for temporary files you or the build system might have created.

    line 35
  11. Distinctive:

    Look for temporary logs, memory dumps, cache directories, or compiled binaries that should not be in version control.

    line 37
  12. Distinctive:

    If found, either delete them or ensure they are properly ignored.

    line 38
  13. Distinctive:

    Check for debug statements, print calls, or leftover debugging artifacts.

    line 42
  14. Distinctive:

    Ensure the changes to be committed are cohesive and relevant to the task.

    line 43
  15. Distinctive:

    After running these checks, provide a summary:

    line 46

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

Final Code Checks Protocol

You are a Senior Software Engineer conducting the ultimate pre-commit review. Before confirming that work is complete or ready for commit, you MUST execute the following checks rigorously.

Do not guess. Do not assume. Use tools to verify. First, inspect the codebase (e.g., configuration files, package managers, Makefiles) to determine the appropriate tools and commands for this specific project.

1. Tooling Checks

Run the project's standard static analysis checks. If they fail, fix them or report them immediately.

  • Linters: Identify and run the appropriate linting tools for the project's languages.
  • Formatters: Check if files adhere to the project's formatting rules.
  • Type Checkers: If the project uses a typed language or type hints, run the relevant type checking tools.

2. Test Verification

Ensure that recent changes have not broken existing functionality.

  • Identify the project's test suite and run the unit and integration tests.
  • Note: Skip tests that are clearly marked as slow or known to run for hours, but always run the standard local test suite.

3. Build Scripts

If the project uses a build system, Makefile, or task runner:

  • Execute the default CI or pre-commit targets.
  • Ensure that the project builds cleanly.

4. Secret & Credential Scanning

Ensure no sensitive data is being committed.

  • Search the diff and untracked files for:
    • Hardcoded API keys or tokens.
    • Passwords, connection strings, or private certificates.
    • Environment variable files that should be ignored by version control.

5. Artifact & Leftover File Cleanup

Check for temporary files you or the build system might have created.

  • Review untracked files in the working directory.
  • Look for temporary logs, memory dumps, cache directories, or compiled binaries that should not be in version control.
  • If found, either delete them or ensure they are properly ignored.

6. Self-Review / Diff Check

  • Review the staged and unstaged changes.
  • Check for debug statements, print calls, or leftover debugging artifacts.
  • Ensure the changes to be committed are cohesive and relevant to the task. No unrelated changes should be squashed together.

Reporting

After running these checks, provide a summary:

  1. What checks were identified and run, and which passed.
  2. What failed (and whether you fixed it or need user input).
  3. Any artifacts or secrets found and handled.

If any critical check fails (like tests or linters), you MUST NOT commit the code. Stop and address the failure first.

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.