How to use Claude Code
Anthropic's agentic coding tool for the terminal. Below: 3 workflows, each with the steps and prompt.
Claude Code skills: build a /smoke-test skill that clicks through your web app in a real browser
A Claude Code skill is a folder with a SKILL.md file that Claude loads when your request matches its description, or that you run as /skill-name. To build a browser smoke test, install Playwright CLI and its agent skill, then add a project skill at .claude/skills/smoke-test/SKILL.md that lists your critical user flows and tells Claude to run them in a headless browser and report failures with screenshots and console errors. Type /smoke-test after a UI change, or name the skill verify (or simplify) so Claude Code runs it before each commit. In our 2026-10-15 test (Claude Code v2.1.300, Sonnet), the first run took about 30 s and $0.05 and found the planted bug without editing any code.
- Install Playwright CLI
- Install the Playwright agent skill into the repo
- Write down your critical flows
- Create the smoke-test skill
- Run it
- Triage and fix
- Optional: run it before every commit
n8n MCP server: build, test and publish n8n workflows from Claude Code
Enable Settings > Instance-level MCP in n8n, copy an MCP token from Connect > API key, and add the server to Claude Code with claude mcp add --transport http and an Authorization: Bearer header (the route we tested). Install the official n8n-skills plugin for n8n's conventions; its own OAuth connection is an untested alternative. Then ask Claude to plan, build, validate and test a workflow on pinned data. Publish it yourself after review, and block publish/archive tools with Claude Code deny rules. In our 2026-10-15 test (n8n 2.43.6, Claude Code v2.1.300) Claude built a 15-node unpublished workflow and passed a pinned-data test run in 166 s for $0.71, and the deny rules kept it from publishing or archiving anything.
- Enable MCP on the instance
- Connect Claude Code with an MCP token
- Add the n8n Skills plugin
- Add guardrails before the first prompt
- Ask for a plan first
- Let Claude build and validate
- Test on pinned data
- Review and publish yourself
Playwright MCP: set it up and have Claude Code test your web app
Add Microsoft's Playwright MCP server to your agent (for Claude Code: claude mcp add playwright npx @playwright/mcp@latest), point it at a local or staging URL, and ask it to walk a user flow step by step. It drives a real browser through accessibility snapshots, reports what broke, and can then write a regular Playwright test so the check runs in CI without the agent.
- Add the server to your agent
- Choose headed or headless
- Start your app and write the flow down
- Ask for a walkthrough, not a fix
- Check the evidence
- Fix, then re-run the same flow
- Turn it into a real test