visionarycoder-vc-ifx-transform-requirements-to-ste-prompt.prompt.json json Copy{
"prompt": "# Transform Requirements to STE Spec\n\nAgent converts ambiguous requirements into explicit requirements, tests, and pass criteria.\n\n## Inputs\n\n| Input | Required | Notes |\n|---|---|---|\n| Source requirement | Yes | Agent records the exact user wording first. |\n| Scope | Yes | Agent records file, endpoint, component, or workflow scope. |\n| Delivery goal | Yes | Agent records build, migration, review, or contract outcome. |\n| Numeric targets | No | Agent records latency, coverage, count, size, or status thresholds. |\n| Constraint set | No | Agent records policy, security, or runtime limits. |\n\n## Ambiguity Matrix\n\n| Signal | Detection Pattern | Rewrite Target |\n|---|---|---|\n| Modal wording | Token from the prohibited modal list | Explicit action sentence |\n| Vague scope | `appropriate`, `reasonable`, `relevant` | Named files, layers, or endpoints |\n| Missing actor | Passive voice or noun-only fragment | `Agent`, `User`, or named system subject |\n| Missing test | No command, scenario, or observable result | `Test` and `Pass` rows |\n| Non-boolean condition | `if needed`, `when appropriate` | Numeric or state-based trigger |\n\n## Workflow\n\n| Step | Agent Action | Test | Pass |\n|---|---|---|---|\n| 1 | Agent copies the original requirement and tags each ambiguity signal. | Review tagged source text. | Every ambiguous phrase has one tag. |\n| 2 | Agent rewrites each sentence with one explicit subject and one observable action. | Review rewritten requirement list. | Every sentence has one subject and one action. |\n| 3 | Agent adds one test and one pass condition for each requirement. | Review verification rows. | Every requirement has measurable verification. |\n| 4 | Agent asks one narrow clarification only if a numeric threshold or scope boundary remains unknown. | Review clarification list. | Zero or one clarification is emitted for the unresolved gap. |\n| 5 | Agent returns the final STE-shaped specification. | Review output contract. | Output follows the template exactly. |\n\n## Rewrite Matrix\n\n| Source Shape | Target Shape |\n|---|---|\n| `Validate input` | `Agent verifies input format. Test: Send invalid payload. Pass: Status = 400.` |\n| `Handle errors appropriately` | `Agent returns RFC 9457 Problem Details. Test: Trigger validation error. Pass: Content-Type = application/problem+json.` |\n| `Use caching if needed` | `Agent uses caching when P95 latency exceeds the agreed threshold.` |\n| `Secure authentication` | `Agent verifies token signature, expiration, and required claims.` |\n\n## Output Contract\n\n```markdown\n## Requirement: <title>\n\n**Scope:** <path or component>\n\n1. Agent <action>.\n Test: <command or scenario>\n Pass: <observable result>\n\n2. Agent <action>.\n Test: <command or scenario>\n Pass: <observable result>\n```\n\n## Verification\n\n| Check | Pass |\n|---|---|\n| Explicit subjects | Every sentence names the actor. |\n| Modal removal | Zero modal verbs remain. |\n| Measurable tests | Every requirement has `Test` and `Pass`. |\n| Boolean conditions | Every trigger uses a numeric or state-based boundary. |",
"variables": [],
"notes": "Transform vague user requirements into deterministic STE-aligned specifications with explicit actors and measurable verification. Mode: agent.",
"metadata": {
"source": {
"provider": "github-prompts",
"repository": "https://github.com/visionarycoder/vc.Ifx",
"path": ".github/prompts/transform-requirements-to-ste.prompt.md",
"ref": "0d2e60bdae574f643bafb0af329e0209eaa4d9e4",
"url": "https://github.com/visionarycoder/vc.Ifx/blob/0d2e60bdae574f643bafb0af329e0209eaa4d9e4/.github/prompts/transform-requirements-to-ste.prompt.md",
"key": "visionarycoder/vc.Ifx/.github/prompts/transform-requirements-to-ste.prompt.md"
}
}
}