Przejdź do treści
Biblioteka skilli
AI i agenci · Testowanie

agent-self-verification-test-loops

/agent-self-verification-test-loops

Wymusza pętle samodzielnej weryfikacji: uruchamia lintery, kompilatory i testy przed zwróceniem odpowiedzi.

Licencja
MIT
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wymusza pętle samodzielnej weryfikacji: uruchamia lintery, kompilatory i testy przed zwróceniem odpowiedzi.

Oryginalny opis (EN)

Use this skill when enforcing automated self-verification loops, running linters, compilers, and test suites before returning answers.

Jak działa

  1. When to use
  2. Core principles
  3. Step-by-step workflow
  4. Behavioral guidelines & dialogue examples
  5. Common mistakes & pitfalls
  6. Verification checklist
  7. Related skills
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 445 słów
Podgląd SKILL.md
---
name: agent-self-verification-test-loops
description: Use this skill when enforcing automated self-verification loops, running linters, compilers, and test suites before returning answers.
---
# Agent Self-Verification & Test Loops

## When to use
Use this skill before delivering generated code, architectural refactorings, configuration edits, or migration scripts to verify correctness autonomously.

## Core principles
- **Never Deliver Unverified Code**: An agent should never assume code works simply because it was written without error; real execution is the only ground truth.
- **The Self-Verification Loop (Generate -> Execute -> Inspect -> Remediate)**:
  - Generate code change.
  - Run linter/compiler/test suite via CLI.
  - Parse error outputs if exit code != 0.
  - Apply surgical remediation and re-test.
- **Fail-Fast Mechanics**: Run fast static checks (syntax, typing) before heavy integration tests.
- **Cap Remediation Iterations**: Bound auto-fix retry loops to 3 iterations to prevent runaway execution costs or infinite churn.

## Step-by-step workflow
1. **Complete initial code modification**: Write changes to disk using file tools.
2. **Execute project verification harness**:
   - Python: Run `pytest path/to/test.py` or `python -m py_compile script.py`.
   - Node: Run `npm test` or `tsc --noEmit`.
   - Rust/Go: Run `cargo check` or `go test ./...`.
3. **Evaluate exit code and stderr**:
   - If exit code == 0: Proceed to deliver response with verified status.
   - If exit code != 0: Inspect traceback and line numbers.
4. **Execute surgical fix**: Modify only the offending lines and re-run the verification command.
5. **Escalate after 3 failed attempts**: If unresolved after 3 cycles, report the exact failure and diagnostic findings to the user.

## Behavioral guidelines & dialogue examples
- **Execution Loop Trace**:
  - *Agent Action*: Generates `calculate_tax.py`.
  - *Self-Check*: Runs `python -m pytest test_tax.py`.
  - *Tool Output*: `FAILED test_tax.py::test_zero_income - ZeroDivisionError: division by zero`.
  - *Internal Monologue*: "Test failed on zero income edge case. I must fix the divisor guard before replying."
  - *Agent Action*: Edits line 24 to add `if income == 0: return 0.0`.
  - *Self-Check 2*: Runs `python -m pytest test_tax.py` -> `1 passed in 0.04s`.
  - *User Response*: "Implemented tax calculator. Validated with pytest across all test fixtures including zero income edge cases."

## Common mistakes & pitfalls
- Reporting "I have implemented and tested the code" when no test command was ever run.
- Ignoring non-zero exit codes or claiming "minor lint errors can be disregarded".
- Entering infinite retry loops where the same syntax error is repeated continuously.

## Verification checklist
- [ ] Code modifications are compiled or executed against a test runner before reporting completion.
- [ ] All test assertions exit with code 0.
- [ ] Retry loops are capped at a maximum of 3 automated remediation cycles.
- [ ] Delivery response provides evidence of successful test execution.

## Related skills
- agent-error-taxonomy-root-cause-analysis
- agent-hallucination-mitigation-self-check
- agent-guardrail-invariants-compliance-audit
- testing-and-qa

Wersje

W bazie nie ma innych skilli o nazwie agent-self-verification-test-loops.

Migawka bazy z 13.11.2026 · wersja paczki fd266cb2941a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100agent-planning-react-reflection-loops
    Wdraża pętle myśl-działanie-obserwacja, strategie plan-i-rozwiąż oraz samorefleksję w autonomicznych agentach AI.
  • 100agent-dx
    Audytuje narzędzia repozytorium pod kątem samodzielnej weryfikacji pracy przez agentów kodujących i wskazuje brakujące narzędzia testowe.
  • 96generate-agentic-loop
    Projektuje lub wdraża ograniczone pętle wykonania agentów z weryfikacją, limitami zasobów i odzyskiwalnym stanem.
  • 100verification
    Uruchamia pełny zestaw weryfikacji agenta: bezpieczeństwo, wzorce, jakość kodu i kontrole właściwe dla języka.
  • 100agent-engineering
    Zbiera sprawdzone zasady inżynierii dla agentów kodujących: workflow z planem na początku, delegowanie do subagentów, pętle samodoskonalenia, bramki weryfikacji i ustrukturyzowane zarządzanie zadaniami.
  • 100inkbox-agent-self-signup
    Prowadzi przez proces samodzielnej rejestracji agenta w Inkbox: weryfikację, ponowne wysłanie weryfikacji, ograniczenia oraz opcjonalne pola, takie jak uchwyt agenta czy część lokalna skrzynki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.