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.
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
- Call
get_catalog_statuswithvalidate_schemas: truebefore starting or resuming work. - Compare the callable tools with every stage this task needs. Check
workflow_capabilities.required_toolsand each stage’smissing_tools. - Stop on
integrity_status: fail. On a warning, follownext_actionbefore using the catalogue for a release decision. - 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.
- Call
list_design_contracts, followingnext_before_idas needed, and resume a match withget_design_contract. Otherwise create a named draft withcreate_design_contractand a newidempotency_key; keep that key and the same arguments for an uncertain creation retry. - 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. - Call
update_design_contract_stepwith only the current section’s answer fields. Save partial answers withuser_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. - Supply the contract’s last-read
revision.numberasexpected_revisionand a newidempotency_keyfor each intentional update or approval. OnSTALE_CONTRACT_REVISION, read and reconcile; on replay, inspectmutation.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. - When
guidance.stageisapproval, present the whole contract, its tradeoffs and acceptance checks. Callapprove_design_contractonly after the user explicitly approves that exact revision. Section confirmation is not final contract approval. - Export the approved revision using
get_design_contractwithview: handoff. For a user-chosen project, callattach_design_contractwith its project revision guards, the exactcontract_revisionand honestuser_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
- Call
list_design_projectsbefore creating anything. Resume a match when its name, goal, routes or brief fingerprint identifies the same work. - Use
get_design_projectwithview: summaryfor routine continuation. Ifdesign_contract_referenceis present, readview: contractbefore designing or implementing. Requestbrief,direction,blueprint,tokens,reviews,revisions,handofforfullonly when needed. Keeprevision.numberfrom the current read for guarded changes. - If no project matches, call
create_design_projectwith known user, business, content, brand, device and delivery context. - Ask only questions that materially change a design choice. Record, when known:
- decision authority:
user_led,collaborativeordelegated; - desired experience:
lean,balanced,expressiveorimmersive; - 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.
- decision authority:
- 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
- Call
explore_design_directionsorrecommend_design_directionto preview bounded perspectives. On an unselected project these calls must not save a direction. - 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.
- In a
user_ledproject, ask the user which tradeoff they prefer. Never infer confirmation or automatically select the highest score. - Call
select_design_directiononly with the chosencandidate_id, an honest approval rationale anduser_confirmed: truewhen the user actually confirmed it. - Use
adjust_design_directionfor bounded changes. Pass locks for choices that must remain stable, explain the reason and review the returned diff. - Use
undo_design_directionwhen an adjustment or selection worsens the result. Record the reason. - Preserve an approved direction during brief-only changes. Use
preserve_current_direction: trueandrecompute: [content_blueprint]; explore a replacement only when the user requests one or hard constraints make the current direction ineligible.
Structure and implementation
- 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.
- A project may span several zones. The named archetype supplies layout grammar; it never replaces brief routes.
- Use
plan_page_contentfor route changes. Prefer one route plus a concise reason. Inspect the route diff andmissing_required_routes; do not regenerate unrelated pages. - Treat a named style as a preset. Its layout, typography, colour energy, material, imagery, motion character and tone facets may be adjusted unless locked.
- Use
search_component_contractsandget_component_contractfor every generic contract referenced by feature-workflow recommendations. Treat purpose, semantics, keyboard behaviour, states and verification as invariants. - When a component has material variant axes, call
explore_component_variantswith 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. - 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.
- Call
select_component_variantonly after approval. Persist the route, placement, explicit selections, honest rationale anduser_confirmed: truewhen the user actually confirmed. Unspecified secondary axes may retain their labelled defaults; never weaken the invariant contract. - Use
export_design_tokensonly after the direction and material component variants are stable. Preferdtcgfor portable exchange; otherwise choose the implementation format. - Implement semantic content, task order and complete states before optional decoration, imagery or motion.
Policy model
- Hard floors are non-negotiable semantic, operability, privacy, security and safety requirements. Passing them establishes eligibility; it is not a style-ranking bonus.
- Contextual budgets are selected from tasks, devices and the approved experience profile. Lean is not universally better than expressive or immersive.
- Creative guidance shapes adaptation but is not compliance. Record an intentional departure and its expected user or brand benefit when hard floors remain satisfied.
- Keep meaningful content and actions complete at M0. Enhanced motion requires equivalent static and reduced-motion experiences.
- Preserve locked colours as provenance and use semantic substitutions when contrast requires them.
Evidence review
- Call
review_implementationonly with observed structured evidence for the saved project blueprint. Include its routes, sections and feature base component contract IDs; includecomponent_variantswith the observed route, placement, component ID and approved selection ID for each saved choice. - Correct objective findings first, verify likely findings directly and take subjective choices back to the user or design owner.
- Call
verify_correctionswith 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 freshreview_implementationfirst. - 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
- Follow structured
next_actionguidance. - For incomplete briefs, answer material
next_questions; do not bypass readiness. - For stale candidate IDs, explore again against the current brief.
- For lock conflicts, remove the change or explicitly unlock the user-approved choice.
- For component variant conflicts, re-open the affected axes, explain the compatibility reason and ask the user to choose among the compatible options.
- For invalid project IDs, list projects; never probe another user’s work.
- Relax one non-mandatory constraint at a time and disclose it.
- Stop on catalogue-integrity failure or unavailable required evidence.
- If review or verification is unavailable, label the stage unavailable and leave it as the next workflow stage.
Work with this as data
Every skill here is available over the APIs.io API and to AI agents over MCP.