Mini-App Spec

    1

    Generate executable HTML5 specifications that reconcile PRDs, Figma designs, and code into a single source of truth.

    Free

    1 installSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Mini-App Spec

    Example session with this skill installed

    Start a new spec for the 'Checkout' feature. Title it 'Secure Checkout Flow'. Use the current PRD in docs/prd.md and the Figma link for the UI layout.

    • Read your context and instructions
    • Compiled the mini-app spec

    I have initialized the specification for the Secure Checkout Flow. I've registered the PRD and Figma link as sources and decomposed the requirement into three core vertical flows for alignment.

    Specification Status: Secure Checkout Flow

    Flow IDDescriptionRisk TierCoreStatus
    flow-01Guest Checkout with Stripe IntegrationHighYespending
    flow-02Registered User Saved-Card PaymentMedYespending
    flow-03Address Validation and Tax CalculationMedNopending

    Source Mapping

    • src-01: docs/prd.md (Version: v2.1) - Mapped to all flows.
    • src-02: figma://file/checkout-v4 - Mapped to UI layout for flow-01 and flow-02.

    Next steps

    1. Review the decomposed flow list above and confirm the risk tiering.
    2. I will then execute save --gate gate1 to anchor these requirements in git.
    3. We will begin per-flow alignment starting with flow-01.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Software requirements often drift from implementation, leading to broken acceptance criteria and "stale" documentation. This skill enforces a Single Source of Truth (SSOT) by generating a self-contained, executable HTML5 specification that acts as a machine contract, operable prototype, and BDD test suite. It bridges the gap between Figma designs and code, ensuring every feature is verified against a frozen behavioral fingerprint before acceptance.

    What it does

    • Executable Contract Generation produces a mini-app-spec.html containing state machines, BDD scenarios, and embedded prototypes.
    • Automated Verification Gate freezes commands and collects evidence per scenario to prevent hand-waived passing status.
    • Multi-Source Reconciliation maps requirements from PRDs, Figma (via MCP), and code into unified vertical user flows.
    • Interactive Review Sessions launches a local browser session where users annotate the UI directly to generate structured change tickets.
    • Mechanical Rule Enforcement blocks acceptance unless specific preconditions, like zero proposed annotations and valid source batches, are met.

    How it works

    1. Resume or Initialize: Use status to recover context or new to create a fresh artifact from the stateless engine template.
    2. Decompose and Map: Register sources and decompose requirements into tiered flows, followed by a mandatory confirmation gate.
    3. Align and Prototype: Fill in states and transitions, then open the artifact for visual alignment and fingerprint freezing.
    4. Reconcile and Accept: Run record-run to collect evidence, then accept with verbatim user confirmation to stamp the final gate.

    Frameworks & tools

    The system uses a Node.js CLI spec.mjs for all contract writes and a stateless HTML5/CSS/JS engine. It integrates with Git for replay anchors and recovery, supports Figma via MCP, and enforces CSP-compliant, zero-dependency templates.

    Why this beats prompting it yourself

    Generic prompts fail to maintain state across long implementation cycles and allow "status cheating" where AI claims success without evidence. This skill uses a mechanically enforced validator and git-anchored replay anchors to ensure the spec and implementation never diverge.

    Use cases

    • Documenting complex multi-state UI components that require high-fidelity prototyping.
    • Auditing legacy codebases by reconciling existing behavior against new BDD requirements.
    • Managing stakeholder sign-off with an operable, annotated "live" specification.
    • Generating verifiable evidence for compliance-heavy features where manual testing is insufficient.

    Known limitations

    Requires a Git repository environment to function. The engine forbids external CDNs or heavyweight frameworks; all visual interactions must be self-contained within the HTML artifact.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 4 days ago

    • Free to download with an account

    Requires

    Node.js
    Git

    Listed4 days ago

    What's inside

    Frequently Asked Questions