/glass:eng-prd-to-tddfrom glass
Draft a technical design document (TDD) from a Confluence PRD, using the smart TDD template for the PRD's class (CareHub, PaceEMR, Data, or IRIS). Use when the user wants a TDD, tech design, or design doc written from a PRD, or gives a PRD link and asks for its technical design.
Ships in glass. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn one PRD into a first-draft TDD that reads like the team's own TDDs for that kind of work. The smart template for the PRD's class decides the sections, their order, and what goes in each; the PRD decides the content. Anything the PRD cannot answer becomes an open question, never an invention.
Confluence lives at intuscare.atlassian.net. Use it as the cloudId for every Atlassian MCP call. If no Atlassian MCP server is connected, stop and tell the user to connect one.
Take the PRD from the user's argument: a Confluence URL, a page ID, or a title to search for. Read it with getConfluenceContent (content_format: markdown, detail: full). Also read its child pages whose titles show they belong to it (answered questions, change logs, appendices), and note any Jira epic or ticket keys it names.
Then read the PRD's comments, footer and inline, resolved and open, with replies: executeRead with listConfluenceComments (content-id, include-replies: true). Product answers often live only in those threads ("no external fulfillment in v1", "no import needed"). Where a comment answers a question the body leaves open, or overrides the body, the latest answer from the PRD's owner wins; cite it in the design.
If the PRD is archived, deprecated, or superseded, say so and ask whether to continue or switch to the page that replaced it.
The class picks the template. Decide it in this order, stopping at the first that applies:
CHOMP), or is about the Medplum/FHIR rewrite: PaceEMR (also called CHOMP).IDI), or its deliverable is a pipeline, a dbt model, a Snowflake or DataHub change, a generated file for a state or CMS, or a Sigma report: Data.Tell the user the class you picked and the one signal that decided it. Stop and wait for the user to confirm this choice. If two rules point different ways (a CareHub feature whose deliverable is a Sigma report, say), ask which team will build it and use that team's class.
Search Confluence with CQL label = "smart-tdd-template" AND label = "tdd-class-<class>", where <class> is carehub, paceemr, data, or iris. Read the page in full as markdown. If no page matches, stop and tell the user: there is no template to follow, and a TDD written without one would not match the team's shape.
The template has four parts. Class conventions are facts to assume unless the PRD says otherwise. The skeleton gives every section heading of the output, in order. Each Generator: blockquote under a heading is an instruction to you about that section; it never appears in the output. The quality checklist is what step 7 checks against.
Search Confluence for a TDD that already covers this PRD: pages with "TDD" or "design" in the title that name the PRD's title or link to its page. If one exists, show it to the user and ask whether to write a fresh draft anyway, extend that one, or stop.
If two PRDs describe the same feature (a revision and its predecessor, say), work from the newer one and say which you used.
The team designs by extending what is already built, so a TDD that starts from a blank page diverges from theirs. Before designing, read:
[OLD], archived, or deprecated.From them, note what you can reuse: the slice, model, table, resource, permission, job, or script that already does part of the work. Default to extending those over creating new ones, and say in the design which existing piece each part builds on. Where you cannot confirm something exists, say so as an open question rather than assuming either way.
Then decide the TDD's shape before writing. Check them in this order:
Inherited decisions are inputs, not proposals. A data model the PRD links to, a decision recorded in a parent or sibling TDD, and an explicit product choice in the PRD (a term, a single-select versus multi-select, an empty state) all stand. Design within them. If you think one is wrong, keep it in the design and raise the disagreement as an open question with your reasoning; never silently replace it.
Follow the skeleton: its headings, in its order, with nothing added at the top level. Sections the template marks optional or conditional are deleted when they do not apply, not left as placeholders. For each section, do what its Generator: block says, drawing on the PRD, the class conventions, and what step 5 found.
TBD: owner), never guesses written as fact.Run the template's quality checklist against the draft and fix every item that fails. Then list the decisions inherited in step 5 (from the PRD, its comments, its linked data model, and parent or sibling TDDs) and check the draft against each one: anywhere the draft departs from one, put the inherited choice back and move your alternative to an open question. When related TDDs differ in a convention (a permission model, say), follow the newest one, since conventions change over time. Then check the draft against the PRD once more: any requirement with no home in the design is either added or listed under open questions with the reason. Finally, cut anything that is not needed: a section that does not apply, a component with no requirement behind it, or a paragraph that restates the PRD.
Publish the TDD to Confluence without asking, and do not write it to a local file: create it as a draft page (draft: true) in the PRD's space, titled TDD: <feature name>, under the parent the user names or else beside the PRD. Always create it as a draft, never as a published page, so it stays private to the user until they publish it themselves.
Tell the user the Confluence draft link, the class and template used, and the open questions that most need an answer.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
36 skills in this plugin
/all-grillA relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go./all-grill-no-writeA relentless interview to sharpen a plan or design./all-grill-to-questionnaireTurn a decision you can't fully answer into a questionnaire for someone else to fill in./all-teachTeach the user a new skill or concept, within this workspace.npx claudepluginhub intuscare/glass --plugin glass