- Home
- Skills
- Prompt & Skill Engineering
- PromptMatrix - Prompt Architect
Works with the AI Agents you already use
PromptMatrix - Prompt Architect
by Sigit Adi
Convert ambiguous instructions into deterministic system prompts using RTF, CO-STAR, and strict JSON contracts.
Free
PromptMatrix - Prompt Architect
Example session with this skill installed
I need a system prompt for a support agent that classifies tickets into 'billing', 'technical', or 'other'. It must output raw JSON only. Use the RTF framework.
- Read your context and instructions
- Compiled the promptmatrix - prompt
I have converted your request into a deterministic RTF specification with a strict RFC 8259 JSON contract.
Support Ticket Classifier Specification
Identity and Scope
You are a Support Ticket Classifier. Your single objective is to categorize inbound customer support text into exactly one of three categories: billing, technical, or other.
Input Context
The ticket text to be analyzed will be provided within <ticket_text> delimiters.
Hard Constraints
- MUST categorize as 'billing' for payment, invoice, or refund queries.
- MUST categorize as 'technical' for bugs, login issues, or API errors.
- MUST categorize as 'other' for general feedback or vague requests.
- MUST NOT provide any conversational preamble or markdown fences.
- If the input is empty, output 'other' and set "confidence" to 0.
Output Contract
Output ONLY a valid RFC 8259 JSON value.
Rules
- No markdown code fences (no ```json).
- No trailing commas.
- Use double quotes for all keys.
{
"category": "billing" | "technical" | "other",
"confidence": number,
"reasoning_short": "string",
"missing_fields": []
}
Next steps
- Copy the specification into your agent's system instruction field.
- Run
node scripts/validate-json-prompt.mjson your final prompt file. - Test with a few-shot calibration set for edge-case tickets.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop writing fragile, prose-heavy prompts that produce inconsistent results. This skill transforms ambiguous instructions into deterministic, testable prompt specifications using industry-standard engineering frameworks.
What it does
- Framework selection identifies the optimal structure for your task, choosing between RTF, CO-STAR, GCC, or Few-Shot based on complexity.
- System prompt architecture builds structured instructions following a fixed order of identity, scope, context isolation, and hard constraints.
- JSON contract enforcement generates strict RFC 8259 compliant schemas that prevent markdown fence leaks, trailing commas, and commentary.
- Context isolation separates instructions from untrusted user input using XML tags or explicit delimiters to prevent prompt injection.
- Validation auditing scans prompt payloads for hidden zero-width Unicode characters and unresolved placeholders that break LLM parsers.
How it works
- Analyze task profile to select the lightest framework that removes ambiguity, such as RTF for operations or CO-STAR for marketing.
- Assemble the specification by layering identity, context, and numbered hard constraints in a fixed parsing order.
- Define output contracts with explicit JSON schema skeletons and escape rules for downstream API ingestion.
- Calibrate with few-shot pairs to anchor edge cases and refusal behaviors using representative input/output examples.
- Run the validation script to audit the final artifact for syntax errors or invisible directional control characters.
Frameworks & tools
This skill is compatible with Claude Code, Cursor, Windsurf, and OpenAI Codex. It includes a Node.js validation script for automated CI/CD prompt testing.
Why this beats prompting it yourself
Manual prompting leads to "hallucinated" formats and schema drift. This skill enforces structural engineering patterns that maximize model adherence and ensure machine-parseable outputs for production agents.
Use cases
- Converting a rough feature idea into a production-ready agent system prompt.
- Designing high-accuracy extraction schemas for unstructured document processing.
- Auditing existing prompt libraries for hidden Unicode leaks and syntax errors.
- Implementing strict JSON-only API responses for tool-calling agents.
Known limitations
Validation scripts require a Node.js 18+ runtime. Does not support non-JSON structured formats like YAML or XML for the output contract phase.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
- Software
Node.js
Permissions
What's inside
Frequently Asked Questions
New in Prompt & Skill Engineering
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.