agentleFS
hyperledger-cactihyperledger-cacti/cacti/.github/skills/doublecheck/SKILL.md

doublecheck

Skill412 starsChanged 4 months agoApache-2.0View on GitHub

Cross-verify assertions, assumptions, and logic in code or explanations. Use as a quality gate before committing changes. Re-reads relevant code and confirms correctness.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify assertions, logic, and assumptions before finalizing changes.

    line 8
  2. Distinctive:

    Before committing a non-trivial change

    line 13
  3. Distinctive:

    After completing a debugging session

    line 14
  4. Distinctive:

    When uncertain about edge cases or correctness

    line 15
  5. Distinctive:

    When refactoring critical path code

    line 16
  6. Distinctive:

    Check for off-by-one errors, null/undefined edge cases, and type coercion issues.

    line 23
  7. Distinctive:

    Verify async code handles all Promise rejection paths.

    line 25
  8. Very specific:

    Verify public-api.ts exports are correct and complete.

    line 29
  9. Very specific:

    Check no test types are exported from public-api.ts.

    line 30
  10. Distinctive:

    Verify Prettier formatting: double quotes, semicolons, 2-space indent.

    line 32
  11. Distinctive:

    Run affected tests and confirm they pass.

    line 35
  12. Distinctive:

    Check that tests are self-contained with injectable configuration.

    line 36
  13. Distinctive:

    Verify test names describe expected behavior.

    line 37
  14. Distinctive:

    Verify no circular dependencies introduced.

    line 41
  15. Distinctive:

    Check imported modules actually exist and are correctly referenced.

    line 43

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

Doublecheck Skill

Verify assertions, logic, and assumptions before finalizing changes. This skill provides a structured second-look workflow.

When to Use

  • Before committing a non-trivial change
  • After completing a debugging session
  • When uncertain about edge cases or correctness
  • When refactoring critical path code

Verification Checklist

Logic Verification

  1. Re-read the changed code and trace the logic step by step.
  2. Confirm all conditional branches produce the correct outcome.
  3. Check for off-by-one errors, null/undefined edge cases, and type coercion issues.
  4. Verify async code handles all Promise rejection paths.

Convention Compliance

  1. Confirm I prefix on interfaces, isI prefix on type guards.
  2. Verify public-api.ts exports are correct and complete.
  3. Check no test types are exported from public-api.ts.
  4. Confirm no files under generated/ were modified.
  5. Verify Prettier formatting: double quotes, semicolons, 2-space indent.

Test Verification

  1. Run affected tests and confirm they pass.
  2. Check that tests are self-contained with injectable configuration.
  3. Verify test names describe expected behavior.
  4. Confirm test files use *.test.ts suffix and correct directory.

Dependency Check

  1. Verify no circular dependencies introduced.
  2. Confirm cactus-test-tooling is devDependency only.
  3. Check imported modules actually exist and are correctly referenced.

Workflow

1. Gather: Read all changed files
2. Trace: Follow logic paths through the changes
3. Verify: Check each item on the checklist above
4. Report: Summarize findings as PASS/FAIL with details

Output Format

## Doublecheck Report

**Scope**: [files checked]
**Result**: ✅ PASS / ❌ FAIL

### Findings
- [PASS/FAIL] Logic verification: [details]
- [PASS/FAIL] Convention compliance: [details]
- [PASS/FAIL] Test verification: [details]
- [PASS/FAIL] Dependency check: [details]

### Issues Found (if any)
1. [specific issue and location]

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.