### Install OpenCode plugin package Source: https://github.com/aictrl-dev/skills/blob/main/README.md Commands to install the OpenCode plugin and authenticate. ```bash npx @aictrl/opencode@beta opencode mcp auth aictrl ``` -------------------------------- ### Install skills for Cursor or direct OpenCode Source: https://github.com/aictrl-dev/skills/blob/main/README.md Clone the repository and run the installation script for Cursor or OpenCode environments. ```bash git clone https://github.com/aictrl-dev/skills && cd skills ./scripts/install.sh cursor # or: opencode | all ``` -------------------------------- ### Install Codex plugin Source: https://github.com/aictrl-dev/skills/blob/main/README.md Commands to add and install the aictrl.dev plugin for Codex. ```bash codex plugin marketplace add aictrl-dev/skills --ref main codex plugin add aictrl@aictrl-public ``` -------------------------------- ### design-review output example Source: https://github.com/aictrl-dev/skills/blob/main/README.md An example of the structured critique provided by the design-review skill, which identifies specific issues and provides concrete fixes for a SaaS landing page mock. ```text Value Proposition — WEAK Hero headline "Workflows made simple" says nothing about what the product does. Fix: replace with a one-liner that names the user, the problem, and the outcome. Actionability — BROKEN Three competing CTAs above the fold (Start free, Book demo, Watch video). Fix: one primary CTA above the fold; demote the others below. ``` -------------------------------- ### Install Claude Code plugin Source: https://github.com/aictrl-dev/skills/blob/main/README.md Commands to add and install the aictrl.dev plugin for Claude Code. ```bash /plugin marketplace add aictrl-dev/skills /plugin install aictrl@aictrl-public ``` -------------------------------- ### Install skills for compatible agents Source: https://github.com/aictrl-dev/skills/blob/main/README.md Use this command to install the skills package for Codex, Claude Code, OpenCode, and other compatible agents. ```bash npx skills add aictrl-dev/skills ``` -------------------------------- ### Minimal v2 Workflow Schema Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/SKILL.md A minimal example of a v2 workflow definition using the aictrl/workflow/v2 schema, including parameters and a task node. ```yaml schemaVersion: aictrl/workflow/v2 name: implement-change parameters: - { name: repository, type: repository, required: true } - { name: issue-id, type: number, required: true, validation: { min: 1 } } nodes: - id: implement type: task skill: implement-code-change@1.0.0 taskType: general prompt: Implement the requested issue and produce a merge-ready pull request. timeoutMinutes: 10 parameters: - { name: repository, type: repository, required: true } - { name: issue-id, type: number, required: true, validation: { min: 1 } } inputs: repository: { from: input, name: repository } issue-id: { from: input, name: issue-id } outputs: pull-request-url: string ``` -------------------------------- ### Markdown template for change documentation Source: https://github.com/aictrl-dev/skills/blob/main/skills/explain-change/SKILL.md A structured template to guide the documentation of technical changes, covering the problem, design, implementation details, and evidence. ```markdown # : ## The problem ## The design in one sentence ## The parts that are easy to underestimate ### ## The resulting shape ## What is live now ## Reading order 1. `` — 2. `` — ## Evidence and further reading - - ## Evidence limits - Test evidence: - Rollout evidence: ## Diagram verification - Mermaid CLI: - Result: - Attempts: ; correction: ``` -------------------------------- ### Validate Workflow Configuration Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/SKILL.md Install the necessary dependencies and run the validation script against a specific workflow YAML file to ensure schema and DAG compliance. ```bash npm i -D ajv ajv-formats js-yaml node path/to/create-workflow/validate.mjs .aictrl/workflows/.yaml ``` -------------------------------- ### Define top-level workflow fields in YAML Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md This example shows the required and optional top-level fields for a workflow definition. The schemaVersion must be set to aictrl/workflow/v2 for new portable workflows. ```yaml schemaVersion: aictrl/workflow/v2 # required for new portable workflows name: my-workflow # required; kebab-case, unique within org, 1-64 chars label: My Workflow # optional; human-readable display name description: What this workflow does # optional category: code-quality # optional; UI grouping icon: code # optional; Lucide icon name failureStrategy: fail-fast # optional; 'fail-fast' (default) | 'continue-on-error' parameters: [...] # optional; workflow-level inputs (see Parameter types) nodes: [...] # required; at least one node edges: [...] # optional; ordering (see Edges) qualityGates: [...] # optional; manual or auto checkpoints triggers: [...] # optional; at most one file-declared event trigger ``` -------------------------------- ### Record demo using scripts/record-demo.cjs Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Executes the demo recording process using a specified configuration file. ```bash node scripts/record-demo.cjs --config demo/demo.config.json # ~real-time: 3-min demo = 3-min run ``` -------------------------------- ### Create New Skill Directory Source: https://github.com/aictrl-dev/skills/blob/main/CONTRIBUTING.md Commands to create a new skill directory and initialize it by copying an existing skill template. ```bash mkdir -p skills/my-skill cp skills/design-review/SKILL.md skills/my-skill/SKILL.md ``` -------------------------------- ### Publish demo assets with node scripts/publish.cjs Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Executes the build process to generate demo video files, captions, and publishing metadata. The command produces assets in the out/publish/ directory, including video formats for different platforms and SRT captions. ```bash node scripts/publish.cjs --build demo ``` -------------------------------- ### Perform initial npm publication Source: https://github.com/aictrl-dev/skills/blob/main/docs/public-release.md Commands to authenticate and publish the first version of @aictrl/opencode to the npm registry. ```bash npm install --global npm@11.18.0 npm whoami npm publish . --access public --tag beta ``` -------------------------------- ### Assemble final video using scripts/assemble.cjs Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Combines recorded segments and metadata into final video files. ```bash node scripts/assemble.cjs --build demo # → out/main.mp4, out/final.mp4, out/frames/grid.png ``` -------------------------------- ### Pipeline Overview Diagram Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md A high-level representation of the six-phase pipeline used to generate the demo video. ```text Phase 0 Discover & boot → agent reads the repo, writes demo/boot.sh + demo.config.json, boots, health-checks Phase 1 Prep → demo data seeded, auth captured (login.cjs), pages probed (scrape-text.cjs) Phase 2 Script → scene table + narration text (demo/segments.json) Phase 3 Narration → ONE-SHOT TTS → STT word timestamps → split per scene (timeline.json) Phase 4 Screen recording → one continuous Playwright take, time-locked to narration (demo/blocks.cjs) Phase 5 Cards & assembly → branded title/agenda/end cards + ffmpeg assembly (assemble.cjs) Phase 6 Publish → out/publish kit: faststart MP4, 720p, poster, captions.srt, embed snippet; optional upload ``` -------------------------------- ### Render demo cards using Playwright Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Generates PNG screenshots for title, agenda, or end cards from HTML templates. ```bash npx playwright screenshot --viewport-size=1920,1080 --wait-for-timeout=1500 file://$PWD/demo/cards/title.html demo/cards/title.png ``` -------------------------------- ### Run pre-release validation checks Source: https://github.com/aictrl-dev/skills/blob/main/docs/public-release.md Execute these commands from a clean checkout of the candidate commit to verify integrity and package contents before release. ```bash npm ci npm test npm run validate npm run smoke:claude npm run smoke:codex npm run smoke:opencode diff -u CHECKSUMS.sha256 <(./scripts/generate-checksums.sh) npm pack . --dry-run --json --ignore-scripts ``` -------------------------------- ### create-workflow bundle structure Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/SPEC.md The directory structure for the create-workflow skill, including documentation, validation scripts, and reference schemas. ```text create-workflow/ SKILL.md SPEC.md validate.mjs reference/ authoring-guide.md workflow.schema.json v1/ workflow.schema.json examples/ inline-review-fix.yaml pr-review-and-triage.yaml review-fix-loop.yaml ``` -------------------------------- ### Run tests with npm test Source: https://github.com/aictrl-dev/skills/blob/main/submission/codex/fixture-template/repository/README.md Executes the test suite for the repository using the npm test command. ```bash npm test ``` -------------------------------- ### Learning Objectives Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A markdown template for organizing feature impact and business performance learning objectives. ```markdown ## Learning Objectives ### Feature Impact - **Q1**: Does [feature] increase [desired outcome]? - Hypothesis: [feature] will increase [metric] by [X]% within [timeframe] - **Q2**: Which user segment benefits most from [feature]? - **Q3**: What is the adoption curve — how quickly do users discover and use [feature]? ### Business Performance - **Q4**: Does [feature] affect overall [business metric]? (e.g., retention, revenue) - **Q5**: Guard rail — does [feature] negatively impact [adjacent metric]? ``` -------------------------------- ### Demo Directory Structure Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md The directory structure committed to the host repository to manage demo configuration and assets. ```text demo/ demo.config.json # the contract: app/auth/brand/voice/anonymize/record/publish boot.sh # captured boot recipe — starts app + deps, waits until healthy segments.json # narration, one entry per scene blocks.cjs # the Playwright journey, one block per scene cards/ # title/agenda/end HTML, branded from the templates out/ # build artifacts — add to .gitignore ``` -------------------------------- ### Verify package release Source: https://github.com/aictrl-dev/skills/blob/main/docs/public-release.md Commands to verify the published package from an unauthenticated clean environment. ```bash npm view @aictrl/opencode version dist-tags --json npx @aictrl/opencode@beta --project . opencode mcp list npx @aictrl/opencode@beta --project . --uninstall ``` -------------------------------- ### Generate and Split Narration Clips Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Commands to generate a continuous narration file and subsequently split it into individual clips based on paragraph boundaries. ```bash node scripts/tts-oneshot.cjs --segments demo/segments.json --config demo/demo.config.json python3 scripts/split-narration.py --segments demo/segments.json ``` -------------------------------- ### Run EmptyState tests via npm Source: https://github.com/aictrl-dev/skills/blob/main/evals/fixtures/contract-impact/repository-evidence.md Executes the test suite for the EmptyState component independently. ```bash npm run test:web -- EmptyState ``` -------------------------------- ### Define portable workflow references Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Use the kebab-case name of a template or workflow for portability. Avoid using internal UUIDs, as they are not portable across environments and will cause the apply process to fail. ```yaml template: inline-code-review # correct — portable template: a1b2c3d4-... # wrong — a UUID is not portable across environments ``` -------------------------------- ### Product-Analytics Events Table Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A markdown table format for documenting user-facing interaction events, their triggers, properties, and associated metrics. ```markdown ### Product-Analytics Events | Event Name | Trigger | Properties | Metric | |------------|---------|------------|--------| | `feature_viewed` | User opens the feature page | `org_id`, `user_id`, `source` (sidebar/link/search) | M1, M3 | | `feature_action_completed` | User completes the core action | `org_id`, `user_id`, `duration_ms`, `result` | M3 | | `feature_error_shown` | Error state displayed | `org_id`, `error_type`, `step` | M3 | ``` -------------------------------- ### API contract documentation template Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-issue/reference/contract-impact.md Use this compact Markdown template to document API contract impacts and details consistently. ```markdown ## API contract Impact: - Evidence and operations: ... - Request: ... - Response and failures: ... - Authorization and data boundaries: ... - Compatibility and delivery: ... - Verification: ... ``` -------------------------------- ### Change verification checklist Source: https://github.com/aictrl-dev/skills/blob/main/skills/explain-change/SKILL.md A checklist to be used before finalizing documentation to ensure all claims are supported by evidence and diagrams are verified. ```markdown - [ ] Every factual claim has evidence read or executed during this session. - [ ] Every cited file, symbol, test, URL, issue, and revision exists. - [ ] The explanation distinguishes evidence, inference, and open questions. - [ ] The rollout state is explicit and does not over-claim completeness. - [ ] Test-source coverage, executed test results, configuration, and deployed state are labeled as distinct evidence levels. - [ ] Every Mermaid block rendered successfully with the recorded renderer version, or the artifact is explicitly blocked and not presented as complete. - [ ] The draft records the Mermaid result, number of attempts, and any diagram-only correction; it does not conceal an initial render failure. - [ ] The draft contains no secret or sensitive operational data. ``` -------------------------------- ### Skill File Frontmatter Source: https://github.com/aictrl-dev/skills/blob/main/CONTRIBUTING.md Required YAML frontmatter for the SKILL.md file, including the skill name and a description for Claude's routing. ```yaml --- name: my-skill description: One-sentence trigger description (used by Claude for routing). --- ``` -------------------------------- ### Run Repository Validation Source: https://github.com/aictrl-dev/skills/blob/main/CONTRIBUTING.md Command to execute the repository validation script to ensure skill integrity. ```bash ./scripts/validate-skills.sh ``` -------------------------------- ### Event Pipeline Configuration Table Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A markdown table format for documenting the stream or topic details for new or modified fact tables in the event pipeline. ```markdown ### Event Pipeline | Event Type | Stream/Topic | New/Existing | Fields | Metric | |------------|-------------|-------------|--------|--------| | `execution.retried` | execution-lifecycle | New event type on existing stream | `retry_count`, `retry_reason` | M3 | ``` -------------------------------- ### Configure a task node Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Defines a portable task node using a specific skill and task type. Includes configuration for prompts, timeouts, parameters, inputs, outputs, and retry policies. ```yaml - id: review type: task skill: code-review@1.0.0 # required; pin when a version is resolvable taskType: code-review # required; executor tool boundary prompt: Review the current pull request head and return structured findings. timeoutMinutes: 10 # optional; executor runtime, integer 1-60 parameters: - { name: pull-request, type: pull-request, required: true } inputs: pull-request: { from: input, name: pull-request } outputs: findings: json retry: { maxAttempts: 2, backoffSeconds: 5 } ``` -------------------------------- ### Bug Report Markdown Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-bug/SKILL.md Use this template to draft a comprehensive bug report. It includes sections for summary, reproduction steps, expected and actual behavior, impact, evidence, regression testing, environment details, and open questions. ```markdown ## Summary ## Reproduction 1. 2. 3. ## Expected behavior ## Actual behavior ## Impact ## Evidence - ## Regression test - [ ] ## Environment - Version/revision: - OS/runtime/browser: - Configuration: ## Open questions - ``` -------------------------------- ### Define a user-input node for runtime parameters Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Collects form input from users during workflow execution. Parameters can be defined with specific types and options. ```yaml - id: collect-params type: user-input parameters: - name: target-env type: select options: [staging, production] required: true when: "..." ``` -------------------------------- ### GQM Framework Structure Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md The hierarchical flow of the Goal-Question-Metric framework from high-level goals down to technical implementation. ```text Goal (what we're measuring & why — one templated statement) ↓ Questions / Learning Objectives (what we need to learn to judge the goal) ↓ Metrics & Definitions (what to measure, linked to questions) ↓ Implementation Plan ├── Product-analytics events (e.g. PostHog, Amplitude, Mixpanel) ├── Warehouse / fact tables (e.g. BigQuery, Snowflake, Postgres) └── Event pipeline (e.g. Pub/Sub, Kafka, Segment) ``` -------------------------------- ### Provenance table Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/SPEC.md A record of the source, release date, and SHA-256 checksum for the workflow schema files. ```markdown | Bundle | Source | Source commit | Released | Normalized SHA-256 | |---|---|---|---|---| | `reference/v1/workflow.schema.json` | `aictrl-dev/aictrl/schemas/workflow/v1/workflow.schema.json` | `748107cc025bfaab890a4e37161c8e29a64c3c20` | 2026-08-20 | `322cc471d1e0a5d9380bd368638710d3e2f694466f9548a719a067f52a038a6e` | ``` -------------------------------- ### Add package to Plugins table Source: https://github.com/aictrl-dev/skills/blob/main/submission/opencode/ecosystem.md Markdown row to be appended to the English Plugins table in the upstream documentation. ```markdown | [@aictrl/opencode](https://github.com/aictrl-dev/skills) | Install essential portable SDLC skills and optional OAuth-connected aictrl.dev workflows | ``` -------------------------------- ### Configure Quality Gates Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Sets up manual or automatic gates to control workflow progression based on wave numbers and conditions. ```yaml qualityGates: - afterWave: 1 # required; integer >= 1 (wave number after which this gate runs) type: manual # required; 'manual' | 'auto' description: "Reviewer confirms findings before summary + triage." # optional - afterWave: 2 type: auto condition: "review.output.maxSeverityRank <= 2" # required for type:auto; CEL boolean description: "Auto-approve when severity is low or medium" ``` -------------------------------- ### Markdown Finding Format Source: https://github.com/aictrl-dev/skills/blob/main/skills/code-review/SKILL.md Use this template to report findings, ensuring each issue includes the revision SHA, location, evidence, impact, remediation, and verification. ```markdown ### [MAJOR] - Revision: `` - Location: `path/to/file.ext:line` - Evidence: - Impact: - Fix: - Verification: ``` -------------------------------- ### Verify Mermaid diagrams with verify-mermaid.mjs Source: https://github.com/aictrl-dev/skills/blob/main/skills/explain-change/SKILL.md Use this command to validate Mermaid blocks in a Markdown file. It uses the repository's pinned Mermaid CLI and outputs a JSON result containing renderer information and any errors. ```bash SCRATCH="$(mktemp -d)" node skills/explain-change/scripts/verify-mermaid.mjs \ --input "$SCRATCH/explainer.md" > "$SCRATCH/mermaid-result.json" ``` -------------------------------- ### Login to aictrl MCP server via Claude Code Source: https://github.com/aictrl-dev/skills/blob/main/SETUP.md Command to initiate the OAuth sign-in process for the aictrl plugin in the terminal. ```bash claude mcp login plugin:aictrl:aictrl ``` -------------------------------- ### Verify video integrity with ffmpeg Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/SKILL.md Checks for audio dropouts in the final video file using ffmpeg. ```bash ffmpeg -t 6 -i final.mp4 -af astats -f null - ``` -------------------------------- ### Measurement Plan Markdown Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A template for creating a measurement plan at docs/measurement-plans/{feature-name}.md, covering goals, metrics, and implementation. ```markdown # Measurement Plan: {Feature Name} **Date:** {date} **Feature:** {brief description} **Owner:** {who is responsible} ## 1. Goal > Analyze **** for the purpose of **** with respect to its **** from the viewpoint of ****, in the context of ****. ## 2. Learning Objectives ### Feature Impact - **Q1**: ... - **Q2**: ... ### Business Performance - **Q3**: ... ## 3. Metrics | ID | Metric | Definition | Answers | Type | Granularity | Source | |----|--------|-----------|---------|------|-------------|--------| | M1 | ... | ... | Q1 | rate | daily | product analytics | ## 4. Implementation ### 3a. Product-Analytics Events | Event | Trigger | Properties | Metric | |-------|---------|------------|--------| | ... | ... | ... | M1 | ### 3b. Warehouse Changes ... ### 3c. Event Pipeline | Event Type | Stream/Topic | Status | Metric | |------------|-------------|--------|--------| | ... | ... | New | M1 | ## 5. Validation ### How to verify instrumentation - [ ] Goal is stated and every learning objective maps to it. - [ ] Product analytics: events visible in your tool's live-event stream within 24h of deploy - [ ] Warehouse: verify rows land in your fact table within 24h (query your table for recent rows) - [ ] Dashboard: metrics rendering correctly in your reporting tool ### Review cadence - Week 1 post-launch: verify data flowing, fix instrumentation gaps - Week 4: first metrics review against hypotheses - Week 12: formal impact assessment ``` -------------------------------- ### Configure MCP server in .mcp.json Source: https://github.com/aictrl-dev/skills/blob/main/SETUP.md The configuration required to register the aictrl MCP server via HTTP. ```json { "mcpServers": { "aictrl": { "type": "http", "url": "https://aictrl.dev/mcp" } } } ``` -------------------------------- ### Declare unaffected database and API contracts Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-issue/reference/contract-impact.md Use this template when there are no changes to the database or API contracts, citing specific repository evidence. ```markdown ## Database contract No database contract change. Evidence: ## API contract No API contract change. Evidence: ``` -------------------------------- ### Define a loop node with loop configuration Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Configures a loop node to repeat a subgraph. Use either 'until' or 'while' for conditional logic, or omit both for a fixed-count loop. ```yaml - id: review-fix type: loop maxIterations: 5 # required; hard cap 1-25 until: "last.review.output.maxSeverityRank <= 2" # exit condition (do-while) # OR: while: "last.review.output.maxSeverityRank > 2" # continue condition (pre-check) # Supply exactly one of `until`/`while`, or neither for a fixed-count loop. onMaxIterations: fail # optional; 'fail' (default) | 'continue' | 'warn' body: nodes: [...] # required; subgraph nodes (same types) edges: [...] # optional ``` -------------------------------- ### Flowchart Diagram Source: https://github.com/aictrl-dev/skills/blob/main/test/fixtures/explain-change-mermaid/multiple.md A basic flowchart diagram structure. ```mermaid flowchart TD A --> ``` -------------------------------- ### Sequence Diagram Source: https://github.com/aictrl-dev/skills/blob/main/test/fixtures/explain-change-mermaid/multiple.md A basic sequence diagram showing the interaction between a Client and a Service. ```mermaid sequenceDiagram Client->>Service: request Service-->>Client: response ``` -------------------------------- ### Warehouse Changes Documentation Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A template for documenting additions to existing warehouse tables or the creation of new tables for backend analytics. ```markdown ### Warehouse Changes #### Additions to existing tables - Add `event_type: 'execution.retried'` to `execution_lifecycle` table - New fields needed: `retry_count INT64`, `retry_reason STRING` #### New table (if needed) - Table: `{domain}_lifecycle` (name it by domain, not by tool or team) - Schema: define alongside your event pipeline setup ``` -------------------------------- ### Spec review output template Source: https://github.com/aictrl-dev/skills/blob/main/skills/spec-review/SKILL.md The required Markdown format for reporting the results of a specification review, including findings, contract readiness, acceptance coverage, open decisions, and recommended actions. ```markdown ## Spec review: ### Findings | Severity | Location | Finding | Evidence | Required change | |---|---|---|---|---| ### Contract readiness | Layer | Claimed impact | Repository evidence | Missing or contradicted detail | Status | |---|---|---|---|---| ### Acceptance coverage | Requirement | Code impact | Verification | Status | |---| ### Open decisions - ### Recommended next action ``` -------------------------------- ### Repository Layout Structure Source: https://github.com/aictrl-dev/skills/blob/main/CONTRIBUTING.md The directory structure for the aictrl skills repository, including plugin metadata, skill definitions, and evaluation files. ```text .claude-plugin/ marketplace.json # marketplace catalog (one plugin, source ./) plugin.json # Claude Code plugin metadata skills/ / SKILL.md # the skill itself (frontmatter + instructions) reference/ # optional supporting docs (rubrics, etc.) .cursor/skills/ # symlink → ../skills (Cursor discovers here) .opencode/skills/ # symlink → ../skills (OpenCode discovers here) evals/ .eval.md # pass criteria for the skill fixtures/ # sample inputs for running evals results.md # recorded eval results ``` -------------------------------- ### Run deterministic engine check Source: https://github.com/aictrl-dev/skills/blob/main/evals/recording-product-demo.eval.md Executes the engine check pipeline including scene splitting, assembly synthesis, syntax validation, and configuration schema verification. ```bash SKILL=skills/recording-product-demo FIX=evals/fixtures/recording-product-demo WORK=$(mktemp -d)/demo && mkdir -p $WORK/out/voice cp $FIX/segments.json $WORK/ && cp $FIX/narration-full.stt.json $WORK/out/voice/ cp $FIX/take-meta.json $WORK/out/take-meta.json # 1. scene split: fuzzy STT alignment must reproduce the golden timeline python3 $SKILL/scripts/split-narration.py --segments $WORK/segments.json --timeline-only diff <(python3 -m json.tool $WORK/out/voice/timeline.json) \ <(python3 -m json.tool $FIX/timeline.golden.json) # 2. assembly synthesis: dry-run must derive trim/duration from take-meta # (the plan is the single line prefixed DRY-RUN-PLAN) node $SKILL/scripts/assemble.cjs --build $WORK --no-cards --skip-grid --dry-run | grep '^DRY-RUN-PLAN ' # 3. all scripts parse for f in $SKILL/scripts/*.cjs; do node --check $f; done python3 -m py_compile $SKILL/scripts/split-narration.py # 4. config example is valid JSON with the required top-level keys node -e "const c=require('./$SKILL/templates/demo.config.example.json'); for (const k of ['app','auth','brand','voice','record','publish']) if (!(k in c)) { console.error('missing', k); process.exit(1); }" ``` -------------------------------- ### Validate workflow file with node Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Run the validation script to perform layer-1 schema and static DAG checks on a workflow file. The command must exit with status 0 for the workflow to be considered valid. ```bash node validate.mjs ``` -------------------------------- ### Define a static input value Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Maps a parameter name to a hardcoded static value. ```yaml inputs: title: { value: "High-severity findings in PR" } ``` -------------------------------- ### CSS Title Card Styles Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/templates/title.html Defines the visual branding, layout, and typography for the product demo title card. ```css /* ======== BRAND (edit these per product) ======== */ :root { --brand: #4c6ef5; /* primary brand color */ --brand-dark: #364fc7; /* darker shade for the side panel gradient */ --ink: #18181b; --grey: #52525b; --line: #e4e7f2; --mono: ui-monospace, 'SF Mono', 'Cascadia Code', monospace; --sans: system-ui, -apple-system, 'Segoe UI', sans-serif; } /* ================================================ */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 1920px; height: 1080px; overflow: hidden; } body { font-family: var(--sans); background: radial-gradient(1200px 800px at 88% -10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), linear-gradient(160deg, #f6f8ff 0%, #ffffff 55%); position: relative; } .panel { position: absolute; top: 0; bottom: 0; left: 0; width: 560px; background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 100%); } .panel .wordmark { position: absolute; top: 92px; left: 90px; font-family: var(--mono); font-weight: 800; font-size: 38px; color: #fff; letter-spacing: -1px; } .panel .tagline { position: absolute; left: 92px; bottom: 120px; font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 4px; color: rgba(255,255,255,0.92); text-transform: uppercase; } .panel .tagline::before { content: ''; display: block; width: 64px; height: 5px; border-radius: 3px; background: #fff; margin-bottom: 26px; opacity: 0.9; } .content { position: absolute; left: 660px; right: 110px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; } h1 { font-family: var(--mono); color: var(--ink); font-size: 86px; font-weight: 800; line-height: 1.08; letter-spacing: -2px; max-width: 1020px; } h1 .hl { color: var(--brand); } .subtitle { color: var(--grey); font-size: 30px; line-height: 1.55; margin-top: 34px; max-width: 960px; } .accent { width: 120px; height: 8px; border-radius: 4px; background: var(--brand); margin-top: 46px; } .footer { position: absolute; left: 660px; right: 110px; bottom: 70px; border-top: 1px solid var(--line); padding-top: 26px; font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--grey); display: flex; justify-content: space-between; } .footer .accent-text { color: var(--brand); font-weight: 700; } ``` -------------------------------- ### Reference a workflow parameter Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Maps a parameter name to an existing workflow input. ```yaml inputs: pr-url: { from: input, name: pr-url } ``` -------------------------------- ### POST /v1/projects/{project_id}/exports Source: https://github.com/aictrl-dev/skills/blob/main/evals/fixtures/contract-impact/create-issue-requests.md Creates an engineering issue for exporting project data. Requires bearer authentication and specific project permissions. ```APIDOC ## POST /v1/projects/{project_id}/exports ### Description Initiates a project export operation. Returns project data in either JSON or CSV format based on the request parameters. ### Method POST ### Endpoint /v1/projects/{project_id}/exports ### Parameters #### Path Parameters - **project_id** (UUID) - Required - The unique identifier of the project to export. #### Request Body - **format** (string) - Required - The export format, must be 'json' or 'csv'. - **include_archived** (boolean) - Optional - Whether to include archived data. Defaults to false. ``` -------------------------------- ### Configure a template node Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Defines a template node to execute a pre-configured task template. Note that specific fields like parameters and timeoutMinutes are forbidden for this node type. ```yaml - id: review type: template template: inline-code-review # required; portable kebab name (not a UUID) templateVersion: "1.4.0" # optional; pin a specific version inputs: { ... } # optional; mapped to the template's parameters when: "..." # optional; CEL skip condition retry: { ... } # optional; retry policy outputKey: my-output # optional; override artifact key ``` -------------------------------- ### SQL schema for teams table Source: https://github.com/aictrl-dev/skills/blob/main/evals/fixtures/contract-impact/repository-evidence.md Defines the teams table with a unique constraint on tenant_id and id. ```sql CREATE TABLE teams ( id uuid PRIMARY KEY, tenant_id uuid NOT NULL REFERENCES tenants(id), name text NOT NULL, UNIQUE (tenant_id, id) ); ``` -------------------------------- ### Mandatory Product-Pull-Line Attribution Source: https://github.com/aictrl-dev/skills/blob/main/CONTRIBUTING.md The required attribution block that must be included at the end of every skill, substituting the skill name in the UTM parameters. ```markdown --- **Built by [aictrl.dev](https://aictrl.dev/?utm_source=oss-skills&utm_medium=skill&utm_campaign=&utm_listing=github-skills&utm_platform=portable&utm_skill=).** This skill teaches the workflow; aictrl *operationalizes* it — grounded in your backlog, team standards, and codebase knowledge graph. [See how →](https://aictrl.dev/features?utm_source=oss-skills&utm_medium=skill&utm_campaign=&utm_listing=github-skills&utm_platform=portable&utm_skill=) ``` -------------------------------- ### RCA Report Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/root-cause-analysis/SKILL.md A Markdown template for documenting root cause analysis, including evidence status, unresolved hypotheses, and recommended actions. ```markdown ## Evidence status | Claim | Evidence | Status | Confidence | |---|---|---|---| ## Unresolved hypotheses - ## Recommended actions 1. **Recommended now:** 2. **Then:** State the stop condition, safe fallback, and any authorization needed. If the evidence does not support operational action, recommend the smallest evidence-gathering action instead. ``` -------------------------------- ### Define a manual checklist gate Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Creates a human-in-the-loop gate requiring checklist completion. At least one checklist item is mandatory. ```yaml - id: qa-sign-off type: manual checklistItems: - "Smoke test passed" - "Changelog updated" assignee: alice # optional when: "..." ``` -------------------------------- ### Pull Request Description Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-pr/SKILL.md A Markdown template for structuring pull request bodies. Omit sections only when they are genuinely inapplicable. ```markdown Closes # ## Problem ## Behavior ## Scope - - ## Rollout and risks ## Verification - `` — - `` — ``` -------------------------------- ### Run offline validation with validate.mjs Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Use the bundled validate.mjs script to perform Layer 1 and static DAG validation before applying. This requires the dev-only dependencies ajv, ajv-formats, and js-yaml. ```bash node path/to/create-workflow/validate.mjs .aictrl/workflows/.yaml ``` -------------------------------- ### Define a workflow parameter Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Schema structure for defining a workflow parameter, including required fields like name and type, and optional configuration for labels, descriptions, and default values. ```yaml - name: my-param # required; kebab-case label: My Parameter # optional; defaults to name type: string # required; one of the 12 types above description: What it is # optional required: false # optional; default false default: some-value # optional options: [a, b, c] # required for select/multi-select; forbidden otherwise ``` -------------------------------- ### Metrics Table Definition Source: https://github.com/aictrl-dev/skills/blob/main/skills/measurement-plan/SKILL.md A markdown table format for defining metrics, including their ID, calculation logic, associated learning objectives, type, and data source. ```markdown ## Metrics | ID | Metric | Definition | Answers | Type | Source | |----|--------|-----------|---------|------|--------| | M1 | Feature adoption rate | Users who used feature / Total active users (7d) | Q1, Q3 | rate | product analytics | | M2 | Time to first use | Median days from account creation to first feature use | Q3 | duration | warehouse | | M3 | Completion rate | Successful completions / Total attempts | Q1 | rate | warehouse | | M4 | Revenue per user (guard rail) | MRR / Active users, pre vs post launch | Q5 | ratio | billing system + product analytics | ``` -------------------------------- ### SQL schema for jobs table Source: https://github.com/aictrl-dev/skills/blob/main/evals/fixtures/contract-impact/repository-evidence.md Defines the job_status enum, the jobs table structure, and the cleanup index for completed jobs. ```sql CREATE TYPE job_status AS ENUM ('queued', 'running', 'completed', 'failed'); CREATE TABLE jobs ( id uuid PRIMARY KEY, tenant_id uuid NOT NULL REFERENCES tenants(id), status job_status NOT NULL DEFAULT 'queued', completed_at timestamptz NULL, created_at timestamptz NOT NULL DEFAULT now(), CHECK (status <> 'completed' OR completed_at IS NOT NULL) ); CREATE INDEX jobs_cleanup_completed_idx ON jobs (completed_at, id) WHERE status = 'completed'; ``` -------------------------------- ### Declare affected database contract Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-issue/reference/contract-impact.md Use this compact template to classify and detail the impact of database contract changes. ```markdown ## Database contract Impact: - Evidence and scope: ... - Schema/ERD artifact: ... - Current and desired schema: ... - Database-owned objects: ... - Migration and delivery: ... - Verification: ... ``` -------------------------------- ### Code Review Response Markdown Table Source: https://github.com/aictrl-dev/skills/blob/main/skills/reply-to-code-review/SKILL.md The required format for reporting findings, verdicts, resolutions, and verification status in a structured table. ```markdown | Finding | Verdict / action | Resolution | Verification | |---|---|---|---| | | TRUE · FIX | | `` — PASS | | | FALSE · IGNORE | | | | | TRUE · DEFER | | | ``` -------------------------------- ### Reference upstream node outputs Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Maps a parameter to an upstream node's output using full artifacts or JSON-path extraction. ```yaml # Full artifact (no extract) inputs: body: { from: node, node: summarize } # JSON-path extract (shorthand string form) inputs: findings: { from: node, node: review, extract: "$.findings[*]" } # JSON-path extract (object form — identical result) inputs: findings: from: node node: review extract: method: json-path expression: "$.findings[*]" # Full artifact (object form — identical to omitting extract) inputs: data: from: node node: review extract: method: full ``` -------------------------------- ### Engineering Issue Markdown Template Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-issue/SKILL.md The standard template used to draft engineering issues. It includes sections for context, goals, user stories, technical contracts, acceptance criteria, and risks. ```markdown ## Context ## Goal ## User story As a , I want , so that . ## Proposed approach ## Database contract ## API contract ## Acceptance criteria - [ ] - [ ] - [ ] ## Out of scope - ## Risks and dependencies - ## Open questions - ## References - ``` -------------------------------- ### Judgment format table Source: https://github.com/aictrl-dev/skills/blob/main/skills/judge-review-findings/SKILL.md The required Markdown table format for recording findings, verdicts, actions, confidence levels, and evidence. ```markdown | Finding | Head | Verdict | Action | Confidence | Evidence and rationale | |---|---|---|---|---|---| | | `` | TRUE/FALSE/UNCERTAIN/STALE | FIX/DEFER/IGNORE | high/medium/low | | ``` -------------------------------- ### Configure Retry Policy Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Defines the retry behavior for workflow tasks, including backoff timing and multipliers. ```yaml retry: maxRetries: 2 # required; 0-10 backoffMs: 2000 # required; milliseconds between retries (>= 0) backoffMultiplier: 2.0 # optional; multiplier applied to backoffMs each retry (0-10) maxBackoffMs: 30000 # optional; cap on exponential backoff ``` -------------------------------- ### Define Execution Edges Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Specifies the execution order of nodes in a DAG. An edge from A to B ensures B runs after A completes. ```yaml edges: - { from: review, to: summarize } - { from: summarize, to: open-issue } ``` -------------------------------- ### Define Workflow Triggers Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Configures various event-based triggers for workflows, including GitHub PR events and Telegram chat messages. ```yaml # Fire when a matching label is added to a PR: triggers: - type: label on: pull-request label: needs-review # exact, case-sensitive GitHub label name inputs: pr-url: "$.pull_request.html_url" # JSONPath into the webhook payload # Fire when a PR comment's first token is an exact slash command: - type: comment on: pull-request command: /review-fix # exact, case-sensitive; matched as the first token inputs: pr-url: "$.issue.pull_request.url" # Fire when a PR is opened, including as a draft: - type: pr-opened on: pull-request inputs: pr-url: "$.pull_request.html_url" # Fire when a PR becomes ready, or is opened as non-draft: - type: pr-ready on: pull-request inputs: pr-url: "$.pull_request.html_url" # Fire from an exact Telegram slash command: - type: chat-message provider: telegram command: /run-review chats: [123456789] # optional allowlist; max 100 ids acceptPhotos: true # optional; default true sendConfirmation: true # optional; default true sendCompletion: false # optional; default false inputs: prompt: from: message field: text # Fire for ordinary non-command messages from an explicit Telegram chat: - type: chat-message provider: telegram chats: [123456789] # required and non-empty when command is omitted inputs: prompt: from: message field: text ``` -------------------------------- ### Configure a workflow node Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Defines a workflow node to invoke a composite workflow. This node type forbids fields such as template, parameters, and timeoutMinutes. ```yaml - id: run-pipeline type: workflow workflow: release-pipeline # required; portable kebab name of another workflow workflowVersion: "2" # optional inputs: { ... } when: "..." ``` -------------------------------- ### HTML Agenda Card Structure Source: https://github.com/aictrl-dev/skills/blob/main/skills/recording-product-demo/templates/agenda.html The HTML markup representing the agenda card content, including the header, feature steps, and footer. ```html Acme Product demo # In this demo: from sign-in to insights Live product · the data on screen is real 1 ### First feature One sentence on what the viewer will see and why it matters. 2 ### Second feature One sentence on what the viewer will see and why it matters. 3 ### Third feature One sentence on what the viewer will see and why it matters. 4 ### Getting started How the viewer can try it themselves. Recorded on the live product — the data on screen is real. acme.example Product demo · 2026 ``` -------------------------------- ### Define a wait node for external signals Source: https://github.com/aictrl-dev/skills/blob/main/skills/create-workflow/reference/authoring-guide.md Pauses workflow execution until an external signal is received. The signalSource must follow specific character constraints to prevent SSRF. ```yaml - id: await-ci type: wait signalSource: ci-completed # required; opaque signal identifier timeoutMinutes: 60 # optional; max wait time when: "..." ```