{"slug": "pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline", "title": "Pencils Down: How I Stopped Typing Code Without Sacrificing Discipline", "summary": "A developer with a background spanning mainframes, C and application architecture built Pencils Down, an open-source spec-driven development workflow that keeps a human in the loop across five gated phases: product owner, analyst, architect, developer and user. Each phase is handled by a persona skill stored as a plain SKILL.md file compatible with Claude Code, Codex, opencode and Kiro, and a required CI check called feature-gate blocks a phase's pull request until the prior phase is accepted, with a gate-override label as the only bypass. The developer also released Narrative, which records the reasoning behind each pull request, and InternalOntology, which tracks repository concepts with a CI check against drift, motivated by concerns about losing understanding and review control when agents write the code.", "body_md": "I've worked as a developer, analyst, product owner and architect. My first job was on mainframes, doing something close to what we now call DevOps. Not long after, I was writing a keyboard driver, then a C-ISAM-like library, before I got anywhere near application code. My early application work was in C.\n\nAll along I wanted to type less and get more. Libraries and frameworks gave me some of that. I no longer write code to parse cursor keys or place pixels on a screen, and I can no longer implement a B+ tree without getting a headache.\n\nI still thought of myself as a good coder. When chat-style AI arrived, I saw it as a super-macro: a faster way to type the code I would have typed anyway.\n\nI was hesitant about agentic coding, where the agent writes and changes the code itself.\n\nBecause I hadn't written the code, I worried I wouldn't have a deep understanding of the implementation. I worried about losing control, that I might not spot errors, and I worried that, without that understanding, I couldn't review the output critically.\n\nSo I started writing skills and steering files to keep track of what I was doing. [Narrative](https://github.com/jamiemitchellconsultants/Narrative) was the first step: it keeps a human-readable record of the why behind each pull request. [InternalOntology](https://github.com/jamiemitchellconsultants/InternalOntology) came next. It tracks the concepts in a repository, and a CI check stops the code and docs drifting away from them.\n\nNow I was racing through agentic application development, without having to remember every decision or every step.\n\nThis seemed great. Idea in, application out, without a single line of hand-written code.\n\nBut it worked for me alone. It was hard to share, and it limited collaboration with my team.\n\nIt also felt like I was a junkie chasing my next fix. I'd start a small enhancement and never let myself take a break. I never stepped back to review progress or check my direction of travel. I just followed the agent's prompt to do the next step.\n\nThen I realised that, privately, I was following a workflow: vision, then behaviours, then architecture, then development, then acceptance. I thought I might as well build guardrails around it, with breakpoints and review to help me.\n\nAfter several iterations and a rename, Pencils Down emerged. The name is about the developer: my pencil is down. I don't type changes, I prompt agents to make them. What the workflow adds:\n\nPencils Down is spec-driven development with a human in the loop. Each phase has a persona skill that does the work, and nothing starts until a person has accepted what came before it:\n\n`feature-po`): hears the idea out in the owner's own words, fills the gaps and sets out the vision.`feature-analyst`): turns the vision into system behaviours and drives out uncertainty.`feature-architect`): starts from the repository's architecture baseline, asks deployment questions drawn from the behaviours, and records decisions.`feature-dev`): writes a plan sliced into increments, then builds one increment at a time, stopping at the end of each.`feature-user`): writes the runbook and user guide, and runs scripted walkthroughs and executable tests, locally and in the deployed environment.\nThe gates don't depend on the agent remembering the rules. A required CI check, `feature-gate`, fails a phase's pull request until the phase before it is accepted. The only bypass is a `gate-override` label, with the reason written down.\n\nNot every change needs a pull request for every phase. Lite mode runs a small feature as one issue, one `feature.md` and three pull requests.\n\nThe skills are plain `SKILL.md` files, installed where Claude Code, Codex, opencode and Kiro each look for them.\n\nIn a commercial environment, and especially in a regulated industry, vibe coding doesn't meet regulatory or compliance constraints. An auditor asks who asked for a change, why, who approved it and how it was tested. A chat history with an agent answers none of that.\n\nPencils Down gives explicit traceability, as a side effect of the workflow rather than paperwork added afterwards:\n\n| The auditor asks | Where Pencils Down records it | \n|---|---|\n| Who asked for this, and why? | The vision, captured in the owner's own words, and its accepted GitHub issue. | \n| What must the system do? | Behaviours with permanent ids (B1, B2 and so on), each with a Given/When/Then scenario. | \n| Where is each requirement implemented? | The architecture's traceability table, from every behaviour id to the components that serve it, and an ADR for each significant decision. | \n| Was every requirement built and tested? | Each behaviour id belongs to one build increment, and acceptance writes a walkthrough and an executable test for each. `feature-analyze` reports any id with no component, increment or test. | \n| Who approved each step? | With branch protection on, every phase lands as a pull request that a code owner must approve, and CI blocks the next phase until it is accepted. | \n| Was any rule bypassed? | Only with a `gate-override` label, its reason recorded in the pull request's Narrative sections and kept in the decision history. | \n\nIt doesn't make you compliant on its own: your controls and your auditors decide that. But it turns \"the AI wrote it\" into a chain from requirement to test, with a named person accepting each link.\n\nPencils Down ships as a Claude Code plugin. Install it, then run `/init-repo` in a new or existing repository:\n\n```\n/plugin marketplace add jamiemitchellconsultants/pencils-down\n/plugin install pencils-down@pencils-down\n```\n\nIt needs `node` and an authenticated `gh`. Start your first feature with the `feature` skill.\n\nThe code, the docs and a comparison with Spec Kit, BMAD and Superpowers are on [GitHub](https://github.com/jamiemitchellconsultants/pencils-down). It's MIT licensed.", "url": "https://wpnews.pro/news/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline", "canonical_source": "https://dev.to/jamiemitchellconsultants/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline-3g07", "published_at": "2026-12-03 08:09:10+00:00", "updated_at": "2026-12-03 08:16:37.480886+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["Pencils Down", "Narrative", "InternalOntology", "Claude Code", "Codex", "opencode", "Kiro", "GitHub"], "also_reported_by": [], "takeaway": "Pencils Down enforces spec-driven agentic development by gating each phase's pull request behind a required feature-gate CI check that only passes once the previous phase is accepted, with a labeled override as the sole bypass.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline", "markdown": "https://wpnews.pro/news/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline.md", "text": "https://wpnews.pro/news/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline.txt", "jsonld": "https://wpnews.pro/news/pencils-down-how-i-stopped-typing-code-without-sacrificing-discipline.jsonld"}}