Sknoe / Notes

The Practical Claude Playbook for Developers: From First Chat to Reusable Systems

A clear five-level roadmap for moving past one-off prompts, with context design, reusable Skills, MCP connections, and structured JSON outputs.

5 min read

Most developers use Claude the same way on day one hundred as they did on day one: open a blank chat, paste a snippet of code or a vague question, get an answer, and start over from scratch tomorrow.

That works for quick syntax lookups. It falls apart when you want consistent code reviews, repeatable documentation, or reliable JSON responses inside an application.

After digging through Anthropic’s developer patterns and building repeatable workflows of my own, one pattern stood out: getting real leverage from Claude isn’t about finding one magic prompt. It’s about moving up five levels of setup.

The five levels

Level 1 — Ad-hoc chat

Ask a question in one conversation, copy the answer, and lose the working context when you move on.

Level 2 — Structured context and artifacts

Supply the background, constraints, and examples that matter. Claude Artifacts can help you view and iterate on outputs such as code or documents; they don’t replace project instructions or automatically make context reusable across conversations.

Level 3 — Reusable Skills (SKILL.md)

Package recurring workflow instructions, domain rules, and output expectations so you don’t have to repeat them each time. Skills improve consistency; they don’t guarantee identical results for every task.

Level 4 — Connected tools and MCP

Connect Claude to tools or data sources so it can retrieve current information instead of relying on copied snippets. MCP is one way to provide that connection. A tool definition in your own application works differently: Claude requests a function call, and your application runs the function and returns its result. The setup depends on the Claude product; for example, Anthropic’s API MCP connector connects to remote MCP servers.

Level 5 — Application pipelines and structured outputs

Call Claude from a script or backend route, then constrain the response to a schema when the application needs predictable data. Your code still needs to handle API errors and responses such as refusals or output cut off by a token limit.

When an answer feels generic

A useful prompt usually makes five things clear: role and bar (who Claude is acting as and what standard it should meet); context (the stack, constraints, and files that matter); task (the exact action); guardrails (what it should avoid); and output contract (the expected response shape). For example, ask for a senior frontend engineer to review a React checkout reducer for race conditions, specify the Storefront Next stack and relevant constraints, ask it to find transitions where a double-click could trigger two basket mutations, rule out third-party state libraries, and request a table of failure modes followed by an updated reducer.

Choose the lightest tool that solves the problem

One complex task: use a structured prompt and an Artifact to develop a one-time architecture comparison or prototype. Repeated workflow: use a Skill for a process you run regularly, such as reviewing pull requests against team rules. Live data or files: use MCP or another tool connection when Claude needs access to current documentation, repository files, or external data. An application feature: use the Claude API and structured outputs when your code needs a response in a defined format.

Keep reusable instructions, reference material, and output schemas separate when that makes them easier to maintain. Putting every rule and edge case into every prompt can bury the details that matter for the current task.

What structured outputs add

Asking a model to “reply only in valid JSON” is a prompt instruction. Structured outputs let an API request include a JSON Schema, so Claude’s response is constrained to that format. Anthropic documents schema-compliant output as the normal behavior, with exceptions such as refusals and responses cut off at the token limit. Your application still needs to handle those cases.

ticket-summary-schema.js
const ticketSummarySchema = {
type: "object",
properties: {
category: {
type: "string",
enum: ["sfra", "storefront-next", "javascript", "ai"],
},
isBlocking: { type: "boolean" },
nextAction: { type: "string" },
},
required: ["category", "isBlocking", "nextAction"],
additionalProperties: false,
};

Defining a schema alone doesn’t constrain a response. The application must pass it in the API request, using output_config.format with type: json_schema. The response can then be parsed as JSON, while the application handles API errors, refusals, and incomplete responses.

Putting the levels together

Here’s one way the five levels can combine while building a feature:

1. Frame the work (Level 2): Turn rough notes into a technical spec and an edge-case checklist.
2. Connect context (Level 4): Let configured tools inspect relevant repository types or schemas.
3. Build in small slices (Levels 2 and 4): Generate one component, loader, or reducer at a time, then check each slice locally.
4. Review consistently (Level 3): Use a Skill with your team’s review criteria, such as checks for timeouts and accessibility.
5. Shape application outputs (Level 5): Use schema-constrained outputs for tasks such as classification or tagging, and handle failure cases in your code.

You don’t need a multi-agent system to make the first improvement. Start by making a repeated workflow clearer, then add context, tools, or output constraints when that workflow needs them.

Keep learning

  • Principles of Modern JavaScript

    Related mindset

    Clear contracts and predictable behavior matter in both code and AI workflows.

  • How Claude Tool Use Actually Works

    Next step

    Trace how a model requests an application function and receives its result.

  • Building an MCP Server for SFRA & Storefront Next Docs

    Applied project

    Connect Claude to a focused documentation search tool.

Did this click?

Tap the bulb if this explanation helped.

Further reading

Interview questions

What’s the practical difference between a one-off prompt, a reusable Skill, and an MCP connector?

A one-off prompt gives temporary instructions for one conversation. A Skill packages reusable workflow instructions. An MCP connector gives Claude access to tools or data sources through a configured server.

Why use schema-constrained structured outputs instead of asking for valid JSON?

A prompt alone can still produce malformed JSON or miss required fields. Structured outputs constrain the response to a schema in the API request. Applications still need to handle cases such as refusals or output cut off by the token limit.