design-table
Skill10 starsChanged 31 days agoApache-2.0View on GitHub
Write the table specification from the SRS, SDS, ERD and code, check every id, and render it to .docx.
- Installs packages
In this repository21 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- commitSkill
- design-apiSkill
- design-architectureSkill
- design-erdSkill
- design-sdsSkill
- design-srsSkill
- doc-syncSkill
- flow-initSkill
- flowSkill
- flow-uninstallSkill
- harness-authoringSkill
- harness-deploymentsSkill
- harness-initSkill
- harness-insightSkill
- integrationSkill
- performanceSkill
- playwright-scaffoldSkill
- prose-reviewSkill
- release-commitSkill
- wiki-initSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
When the second prints missing: ..., ask the user (structured choice) whether to install them, showing the command.
- Very specific: line 51
Read docs/srs/, docs/sds/, erd.md and the inventory's sources.
- Very specific: line 80
When flow-config.wiki is enabled, rebuild the graph so the new node is in it, and tell the user to stage graph.yaml with the document:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design-Table
Writes <docs>/table.md against the host's table.template.md, then renders
<output>/table.docx. Conventions: design-docs.md.
Precondition: .claude/harness-tier/scripts/design_doc_check.py must exist. If it
doesn't, tell the user to run /flow-init and stop.
Interaction. Wherever this skill asks the user something, use the host's blocking question tool already in your tool list, matched by capability rather than by a host-specific name; if it is listed but not loaded, load it first with the host's tool-discovery primitive; only when no such tool is listed, or a question call errors, offer numbered options in chat and end your turn to wait for the reply — never answer the question yourself or skip it.
1. Resolve paths and dependencies
python3 .claude/harness-tier/scripts/design_doc_check.py --paths
python3 .claude/harness-tier/scripts/design_doc_render.py --check-depsWhen the second prints missing: ..., ask the user (structured choice) whether to install them,
showing the command. Yes → run python3 -m pip install python-docx markdown-it-py and
continue. No → stop; the check steps below still run without them if the user asks.
2. Check the templates
python3 .claude/harness-tier/scripts/design_doc_check.py --templatesAny violation → relay the list and stop. A template is the consumer's; do not edit it.
3. Take the code inventory
List every table the schema creates: migrations, DDL files, ORM table names. Run the listing as one command and keep it: it goes into the inventory section verbatim.
4. Write the document
Read docs/srs/, docs/sds/, erd.md and the inventory's sources. Write
<docs>/table.md in the template's shape: every template heading in order, every table
with the template's header, one TBL-NNN block per table, the traceability table, and the
inventory. The entity column names the ENT-NNN from erd.md it realizes; a foreign key
names the target TBL-NNN in the FK column. Write /design-erd first when erd.md is
absent — the check skips the entity cross-check until then and says so. When the file
exists, update it: keep every id, number new tables after the highest, and append one
revisions row. Get wiki_id from:
python3 .claude/harness-tier/scripts/design_doc_check.py --wiki-id table5. Check the document
python3 .claude/harness-tier/scripts/design_doc_check.py --doc tableFix what it names and run it again, at most three rounds. Relay every violation still
standing and every note: line; do not render over a violation without the user's
go-ahead: ask the user (structured choice).
6. Render
python3 .claude/harness-tier/scripts/design_doc_render.py tableWhen flow-config.wiki is enabled, rebuild the graph so the new node is in it, and tell
the user to stage graph.yaml with the document:
python3 .claude/harness-tier/scripts/wiki_graph.py --build7. Report
The .docx path, the violation count, and every warning: line (a diagram left as code).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

