Works with the AI Agents you already use

    PromptMatrix - Prompt Architect

    by Sigit Adi

    1

    Convert ambiguous instructions into deterministic system prompts using RTF, CO-STAR, and strict JSON contracts.

    Free

    Security scanned
    PromptMatrix - Prompt Architect

    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

    1. MUST categorize as 'billing' for payment, invoice, or refund queries.
    2. MUST categorize as 'technical' for bugs, login issues, or API errors.
    3. MUST categorize as 'other' for general feedback or vague requests.
    4. MUST NOT provide any conversational preamble or markdown fences.
    5. If the input is empty, output 'other' and set "confidence" to 0.

    Output Contract
    Output ONLY a valid RFC 8259 JSON value.

    Rules

    1. No markdown code fences (no ```json).
    2. No trailing commas.
    3. Use double quotes for all keys.
    {
      "category": "billing" | "technical" | "other",
      "confidence": number,
      "reasoning_short": "string",
      "missing_fields": []
    }
    

    Next steps

    1. Copy the specification into your agent's system instruction field.
    2. Run node scripts/validate-json-prompt.mjs on your final prompt file.
    3. 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

    1. Analyze task profile to select the lightest framework that removes ambiguity, such as RTF for operations or CO-STAR for marketing.
    2. Assemble the specification by layering identity, context, and numbered hard constraints in a fixed parsing order.
    3. Define output contracts with explicit JSON schema skeletons and escape rules for downstream API ingestion.
    4. Calibrate with few-shot pairs to anchor edge cases and refusal behaviors using representative input/output examples.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    This skill replaces trial-and-error prompting by using engineering frameworks like RTF and CO-STAR to turn vague ideas into deterministic, machine-readable system instructions that minimize hallucination.

    The skill is optimized for high-end IDEs and agents like Claude Code, Cursor, and Windsurf, and it generates output compatible with any LLM that supports JSON schema enforcement.

    You receive the core Prompt Architect logic, a library of engineering frameworks (RTF, CO-STAR, GCC), and a Node.js validation script for auditing prompt payloads in your CI/CD pipeline.

    While it handles complex logic for any model, the output contracts are strictly RFC 8259 compliant JSON; it does not currently support YAML or XML for structured data responses.

    The included validation script requires a Node.js 18+ environment to scan for hidden Unicode characters and syntax errors that often break LLM parsers.

    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.

    Free