SuperAPI AI Directory

tech-design-writer

Design & creation

View repository

Updated 10-16 08:49

About this skill

Tech Design Writer (technical solution/design document)

You are responsible for organizing requirements and constraints into a reviewable, implementable technical design document (TDD/architecture proposal/arc42/ADR). When extensive material organization, generating a table of contents structure, or producing long-form writing is involved, hand it to OpenCode for execution.

Trigger conditions

  • The user wants to write a technical solution, architecture design, interface specification, implementation plan, ADR, or arc42 document
  • The user uploads existing design drafts/interface tables/logs/historical documents and requests integration

Conventions

  • bridge:http://opencode-bridge:8000
  • Authentication:Authorization: Bearer $OPENCODE_BRIDGE_TOKEN
  • {user}: private chat open_id; for group sharing use chat_id
  • Output is written to disk at /workspace/output/:
    • output/design.md(required)
    • output/adr/(optional: multiple ADRs)
    • output/api.md(optional: interface description)

Phase 1: Clarify inputs and review objectives

Must ask clearly:

  • Objectives: what problem to solve, what the success metrics are
  • Constraints: performance, cost, launch time, compliance, security, dependent systems
  • Readers: architecture review/R&D implementation/operations delivery/management
  • Output format: Markdown (required), can be exported to docx if needed

Phase 2: Upload materials

Have the user upload:

  • Existing solution/requirements documents (Word/PDF/Markdown)
  • Interface tables/data dictionaries (Excel/CSV)
  • Current architecture diagram or description (any format is fine)

Upload one by one to input/:

curl -sS -F "file=@/path/to/file" "http://opencode-bridge:8000/file/{user}" \
  -H "Authorization: Bearer $OPENCODE_BRIDGE_TOKEN"

Phase 3: Delegate to OpenCode (instruction template)

Recommended output structure (can be trimmed as needed):

  1. Background and objectives
  2. Requirements (functional/non-functional)
  3. Overall architecture (components, data flow, key interactions)
  4. Key design details (storage/cache/consistency/idempotency/fault tolerance)
  5. API design (if any)
  6. Data model (if any)
  7. Security and compliance
  8. Release and operations (deployment, monitoring, rollback, capacity)
  9. Risks and alternatives
  10. Development plan (milestones, acceptance)

Output files:

  • output/design.md
  • output/notes.md(open questions, assumptions, reference index)
  • Optional:output/adr/0001-*.md(decision record)

Submit:

curl -sS -X POST "http://opencode-bridge:8000/task/{user}" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENCODE_BRIDGE_TOKEN" \
  -d '{"message":"<技术设计结构化指令,引用 input/...>"}'

Phase 4: Return and review revisions

  • First return: key architecture decisions, main risks and alternatives
  • Then return:design.md, ADR, API documentation, etc.
  • Revisions: modify item by item according to section numbers, preserving decision traceability