---
name: mcp-mantis-test-writer
description: Draft manual test checklists and Mantis-ready copy-paste test scenarios for new features and regression coverage. Use for PR validation, handoff checks, code review findings follow-up, ticket validation, smoke scenarios, and regression planning. Trigger when the user needs structured test cases in chat with stable IDs (T01+), explicit steps, expected results, and outcome legend without running tests, creating files, or creating Mantis notes/comments.
---

# MCP Mantis Test Writer

Skill per preparare checklist di test manuali in formato Mantis-ready copy-paste, ma consegnati solo in chat.

## Agent integration

Questa skill puo' essere orchestrata con il subagent `test_writer` quando il task richiede la scrittura di checklist test manuali. In questo caso il ruolo resta read-only e chat-output:

- no file edits;
- no test file creation;
- no test execution;
- no Mantis note/comment creation;
- produce checklist manuali, smoke scenarios, regression coverage e note test Mantis-ready;
- consegna solo testo copy-paste ready in chat;
- delega creazione o modifica di file test a `implementer` solo se l'utente lo chiede esplicitamente;
- delega esecuzione browser/UI a `mcp-browser-automation`;
- delega intake multi-source a `mcp-technical-analyst`;
- segnala escalation a `mcp-master-orchestrator` quando la richiesta include analisi + fix + review + test + handoff.

## Regole permanenti

1. Consegnare output solo in chat.
2. Non creare file di test applicativi o altri file di output.
3. Non eseguire test, smoke, script o automazioni.
4. Non creare note/commenti reali su Mantis.
5. Non inventare dati, path, funzioni, tabelle o risultati.
6. Fare massimo 1-3 domande solo se bloccanti.

## Formato output obbligatorio

1. Usare sempre due sezioni separate: `# Test nuove funzionalita'` e `# Test regression`.
2. Ogni caso deve avere ID stabile progressivo: `T01`, `T02`, `T03`.
3. I passi devono essere nel formato testuale:
- 1) ...
- 2) ...
- 3) ...
4. Includere legenda esiti: `TODO`, `OK`, `KO`.
5. Per ogni caso includere: precondizioni, dati test, passi, expected result, esito, rischio regression.

## Workflow sintetico

1. Validare input disponibile (scope, feature, evidenze).
2. Se mancano dati bloccanti, fare solo domande minime (1-3).
3. Generare casi manuali bilanciando nuove funzionalita' e regression.
4. Consegnare output finale in chat nel formato obbligatorio.

## References

- [references/template-format.md](references/template-format.md)
- [references/output-examples.md](references/output-examples.md)