nguyenhungtran18/skill-and-tool-tracker/autonomous-coding-loop

Claude Code and agent skill by nguyenhungtran18/skill-and-tool-tracker

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

MANDATORY CORE SKILL: Enforces the Autonomous Coding & Self-Correction Loop for Antigravity in every session. Activate this skill whenever writing, modifying, refactoring, or debugging code, implementing features, or fixing bugs across any programming language. It mandates rigorous specification analysis, test-first synthesis, sandboxed execution, failure taxonomy classification, and iterative zero-regression self-correction.

Install

npx vskill@latest install nguyenhungtran18/skill-and-tool-tracker/autonomous-coding-loop

SKILL.md

The same SKILL.md was published earlier as nguyenhungtran18/skill-and-tool-tracker/autonomous-coding-loop.

Autonomous Coding & Self-Correction Loop (Antigravity Core Workflow)

This skill mandates and guides the Autonomous Coding & Self-Correction Loop for Antigravity in all coding and debugging sessions.


1. Golden Invariant: Never Deliver Unverified Code

Antigravity must NEVER guess, assume, or deliver code without proving correctness through the 6-phase closed-loop cycle:

mermaid
flowchart LR
A[Phase 1: Spec & Invariants] --> B[Phase 2: Test Synthesis]
B --> C[Phase 3: Code Actuation]
C --> D[Phase 4: Multi-Tier Verification]
D --> E{All Tests Pass?}
E -- Yes --> F[Phase 6: Convergence & Proof]
E -- No --> G[Phase 5: Diagnostic & Repair]
G --> C

2. Mandatory 6-Phase Execution Protocol

Whenever user tasks involve writing, editing, or fixing code, you MUST execute the following phases:

Phase 1: Problem Decomposition & Invariant Grounding
  1. Identify functional requirements, non-functional performance targets, and boundary constraints.
  2. Establish explicit Invariant Rules $\mathcal{I}$ that must remain invariant throughout execution.
  3. If the task is non-trivial, activate Planning Mode and construct `implementation_plan.md`.
Phase 2: Multi-Tier Verification & Test Bench Synthesis (Test-First / CEGIS)

Synthesize verification probes before or in conjunction with code changes:

  • Level 1: Static AST & Typing: Type hints, linters, import validation.
  • Level 2: Core Invariant Tests: Functional happy paths and mathematical correctness.
  • Level 3: Boundary & Edge Tests: $0, -1, \text{None}$, empty collections, max buffer sizes.
  • Level 4: Concurrency & Safety Probes: Thread synchronization, race conditions, memory leaks.
  • Level 5: Rollback & Transactional Invariants: Fault-injection and atomic state resets.
Phase 3: High-Precision Code Actuation
  • Use targeted modification tools: `replace_file_content` or `multi_replace_file_content` for surgical edits.
  • Maintain comment integrity and adhere to existing codebase architectural idioms.
  • Avoid massive full-file rewrites unless creating brand new modules.
Phase 4: Sandboxed Execution & Telemetry Capture
  • Run unit test suites, linters, and verification scripts via run_command.
  • Intercept and isolate standard outputs, errors, exit codes, and structured tracebacks.
Phase 5: Seven-Tier Failure Classification & Anti-Regression Repair

If any verification probe fails, classify the failure using the Failure Taxonomy Matrix:

CategoryDiagnostic SignalActionable Repair Strategy
`SYNTAX_ERROR`SyntaxError, indentation, token mismatchRe-parse AST, fix syntax, balance delimiters
`TYPE_ERROR`TypeError, AttributeError, NameErrorInspect interfaces, add type narrowing & guards
`RUNTIME_ASSERTION`AssertionError, state mismatchTrace state transitions, audit return transformations
`EDGE_CASE_BREACH`Boundary condition failuresAdd defensive clauses for zero/null/empty/negative inputs
`TIMEOUT_INFINITE_LOOP`Process hang, deadlockAdd loop invariants, recursion limits, non-blocking locks
`SEMANTIC_LOGIC_ERROR`Incorrect output despite valid syntaxStep through algorithm invariants and formula logic
`ENVIRONMENT_OR_IO`Missing packages, permissionsCheck environment, install dependencies, resolve paths
Anti-Regression Invariant:
  • Maintain a checkpoint of the best passing state.
  • After applying each patch, run the entire test suite.
  • If a patch introduces a regression (fails a previously passing test), immediately revert the patch and formulate an alternative hypothesis.
Phase 6: Formal Convergence & Walkthrough Synthesis
  • Convergence is achieved when 100% of test cases pass with 0 regressions.
  • Document changes, validation results, and telemetry in `walkthrough.md`.

3. Quick Reference Scripts & Tools

  • Run loop verification harness:

``powershell python .agents/skills/autonomous-coding-loop/scripts/verify_loop.py ``

  • Detailed mathematical specification:

references/loop_specification.md

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nguyenhungtran18/skill-and-tool-tracker/autonomous-coding-loop/badge)](https://verified-skill.com/skills/nguyenhungtran18/skill-and-tool-tracker/autonomous-coding-loop)

Something wrong with this skill or its page? Tell us.