Agent Skill · CodeCrafted

codecrafted-design

Use CodeCrafted Design MCP for user-led front-end design, guided authoring of reusable private design contracts, persistent projects, contrasting directions, component variants, tokens and evidence review.

Provider: CodeCrafted Path in repo: SKILL.md

Skill body

CodeCrafted Design

Use the connected codecrafted-design MCP server for persistent design work. The service guides choices; it does not own the user’s taste or silently choose the first eligible result.

Capability preflight

  1. Call get_catalog_status with validate_schemas: true before starting or resuming work.
  2. Compare the callable tools with every stage this task needs. Check workflow_capabilities.required_tools and each stage’s missing_tools.
  3. Stop on integrity_status: fail. On a warning, follow next_action before using the catalogue for a release decision.
  4. Explicitly name unavailable stages. Never imply that review or verification completed when those tools were unavailable or could not be called.

Author a reusable private design contract

Use this path when the user wants to define, refine or reuse their own design rules. A private design contract is distinct from a catalogue component contract or public protocol schema. It can describe an original design without choosing a catalogue preset. Ordinary project work does not require creating a custom contract.

  1. Call list_design_contracts, following next_before_id as needed, and resume a match with get_design_contract. Otherwise create a named draft with create_design_contract and a new idempotency_key; keep that key and the same arguments for an uncertain creation retry.
  2. Follow guidance.current_step: purpose, structure, visual direction, typography, colour, components, behaviour and delivery. Ask one or two material questions at a time, reuse known answers, and explain concrete options and tradeoffs. Do not turn the workflow into a request for the user to write JSON.
  3. Call update_design_contract_step with only the current section’s answer fields. Save partial answers with user_confirmed: false. Show the completed section and confirm it only after the user agrees, with their rationale. Never treat an example, suggested default or the agent’s own recommendation as a confirmed choice.
  4. Supply the contract’s last-read revision.number as expected_revision and a new idempotency_key for each intentional update or approval. On STALE_CONTRACT_REVISION, read and reconcile; on replay, inspect mutation.current_revision. Revisiting an earlier section retains later answers but invalidates their confirmations. Review those answers in the changed context instead of making the user repeat them.
  5. When guidance.stage is approval, present the whole contract, its tradeoffs and acceptance checks. Call approve_design_contract only after the user explicitly approves that exact revision. Section confirmation is not final contract approval.
  6. Export the approved revision using get_design_contract with view: handoff. For a user-chosen project, call attach_design_contract with its project revision guards, the exact contract_revision and honest user_confirmed. This pins a snapshot; later contract edits require explicit attachment to update a project.

Read the private-contract section of references/workflow.md when implementing from or changing an attached contract.

Project discovery

  1. Call list_design_projects before creating anything. Resume a match when its name, goal, routes or brief fingerprint identifies the same work.
  2. Use get_design_project with view: summary for routine continuation. If design_contract_reference is present, read view: contract before designing or implementing. Request brief, direction, blueprint, tokens, reviews, revisions, handoff or full only when needed. Keep revision.number from the current read for guarded changes.
  3. If no project matches, call create_design_project with known user, business, content, brand, device and delivery context.
  4. Ask only questions that materially change a design choice. Record, when known:
    • decision authority: user_led, collaborative or delegated;
    • desired experience: lean, balanced, expressive or immersive;
    • familiar versus expressive novelty;
    • desired and avoided qualities or references;
    • preferred journeys, content topologies, navigation models and product zones;
    • style facets that matter and facets the user wants locked.
  5. Update the brief until it is ready. Treat required routes and features as authoritative.

Safe project changes and approval

Version 3.0 requires expected_revision and idempotency_key for every mutation of an existing project, including project-mode recommendations, content planning and evidence reviews. Use the revision.number last read from the current project and a fresh UUID for each intentional request. Retry a lost response using exactly the same arguments and key. A replay can return an older result: inspect mutation.current_revision and read the current project before continuing. On STALE_PROJECT_REVISION, read and reconcile the changed state before submitting a new request; never overwrite a newer agent’s work by merely increasing the number. On IDEMPOTENCY_KEY_CONFLICT, correct the key/payload pairing. Project creation and stateless catalogue tools do not take these guards.

After the user has reviewed and confirmed a specific completed design revision, call approve_project_revision with that revision, user_confirmed: true, and their rationale. The dashboard also offers direct approval. Approval of a direction does not imply approval of a complete revision. Material design changes create a new, unapproved revision; previous approvals remain historical. No approval is implementation certification. Use get_design_project with view: handoff and optional revision_number for a portable saved snapshot. Always read the current project before resuming mutations from a historical handover.

Direction workflow

  1. Call explore_design_directions or recommend_design_direction to preview bounded perspectives. On an unselected project these calls must not save a direction.
  2. Present candidates neutrally. Compare brief fit, journeys and topology, style facets, tradeoffs, contextual budgets and catalogue evidence maturity. Do not turn accessibility or performance evidence into taste scores.
  3. In a user_led project, ask the user which tradeoff they prefer. Never infer confirmation or automatically select the highest score.
  4. Call select_design_direction only with the chosen candidate_id, an honest approval rationale and user_confirmed: true when the user actually confirmed it.
  5. Use adjust_design_direction for bounded changes. Pass locks for choices that must remain stable, explain the reason and review the returned diff.
  6. Use undo_design_direction when an adjustment or selection worsens the result. Record the reason.
  7. Preserve an approved direction during brief-only changes. Use preserve_current_direction: true and recompute: [content_blueprint]; explore a replacement only when the user requests one or hard constraints make the current direction ineligible.

Structure and implementation

  1. Read the blueprint’s structure model as four composable dimensions:
    • journey: what the user is trying to progress;
    • content topology: hierarchy, collection-detail, graph, feed, dataset, workflow-case, conversation, canvas or spatial;
    • navigation model: hierarchical, hub-spoke, sequential, faceted, contextual, persistent-workspace or conversational;
    • product zone: public, discovery, learning, service, product, account, admin, community, commerce or immersive.
  2. A project may span several zones. The named archetype supplies layout grammar; it never replaces brief routes.
  3. Use plan_page_content for route changes. Prefer one route plus a concise reason. Inspect the route diff and missing_required_routes; do not regenerate unrelated pages.
  4. Treat a named style as a preset. Its layout, typography, colour energy, material, imagery, motion character and tone facets may be adjusted unless locked.
  5. Use search_component_contracts and get_component_contract for every generic contract referenced by feature-workflow recommendations. Treat purpose, semantics, keyboard behaviour, states and verification as invariants.
  6. When a component has material variant axes, call explore_component_variants with its real route, placement, width, item count, density and interaction context. Discuss only consequential choices such as orientation, presentation, placement, overflow, selection model and responsive adaptation. Catalogue defaults are starting points, not recommendations.
  7. Present variant options neutrally. Explain what each supports, its tradeoffs and any compatibility rule. Ask which benefit or cost the user prefers; do not infer a choice from the archetype, style, score or first option.
  8. Call select_component_variant only after approval. Persist the route, placement, explicit selections, honest rationale and user_confirmed: true when the user actually confirmed. Unspecified secondary axes may retain their labelled defaults; never weaken the invariant contract.
  9. Use export_design_tokens only after the direction and material component variants are stable. Prefer dtcg for portable exchange; otherwise choose the implementation format.
  10. Implement semantic content, task order and complete states before optional decoration, imagery or motion.

Policy model

Evidence review

  1. Call review_implementation only with observed structured evidence for the saved project blueprint. Include its routes, sections and feature base component contract IDs; include component_variants with the observed route, placement, component ID and approved selection ID for each saved choice.
  2. Correct objective findings first, verify likely findings directly and take subjective choices back to the user or design owner.
  3. Call verify_corrections with a new evidence snapshot and report resolved, persisting, unverified and introduced findings. Retest each failed viewport and scan; submit explicit empty violation/mismatch lists after a passing scan. Omitting a check does not verify a correction. After changing the brief, blueprint, composition or variant selections, start a fresh review_implementation first.
  4. Do not describe automated review as accessibility, security, legal, usability, visual-quality or production-readiness certification.

Read references/workflow.md for ownership, route planning, evidence fields, recovery and the compact handoff.

Failure handling

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/codecrafted-design"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.