Skip to content
design-doc logo

Design Document Generator

design-doc

Create an engineering design document from conversation context using the Google Drive template.

SKILL.md

Full skill instructions

Design Document Generator

Create an engineering design document based on the current conversation context, following the team's standard template from Google Drive.

Prerequisites

Requires Google Drive OAuth setup. See claude/​skills/​SETUP.md for instructions.

When to Use

Use this skill when the user:

  • Asks to create a design doc
  • Wants to document a technical decision or architecture
  • Needs to write up a feature proposal
  • Says /​design-doc

Workflow

1. Find the Template in Google Drive

Search for the engineering design doc template:

ACCESS_TOKEN=$(google-oauth-token)

curl -s -G "https://www.googleapis.com/​drive/​v3/​files" \
  --data-urlencode "q=name contains 'engineering design doc template'" \
  --data-urlencode "fields=files(id,name,mimeType,webViewLink)" \
  -H "Authorization: Bearer ${ACCESS_TOKEN}"

If multiple results, pick the one that's a Google Doc (mimeType = 'application/​vnd.google-apps.document').

2. Read the Template

Export the template as plain text to understand its structure:

DOC_ID="<template-doc-id>"
curl -s "https://www.googleapis.com/​drive/​v3/​files/​${DOC_ID}/​export?mimeType=text/​plain" \
  -H "Authorization: Bearer ${ACCESS_TOKEN}"

3. Analyze the Template

The template will contain:

  • Section headings (e.g., Summary, Background, Goals, Non-Goals, Design, Alternatives, etc.)
  • Instructions or placeholders for what to include in each section
  • Formatting guidance

Extract the structure and understand what each section should contain.

4. Generate the Design Document

Using the conversation history as context, create a design document that:

  • Follows the exact section structure from the template
  • Fills in each section with relevant content from the conversation
  • Uses appropriate technical detail for each section
  • Maintains a professional, clear writing style

If the conversation doesn't contain enough information for certain sections:

  • Mark them with [TODO: <what's needed>]
  • Or ask the user for the missing information before generating

5. Determine the Filename

Ask the user what to name the file, or derive it from the document title/​summary:

  • Use kebab-case: feature-name-design.md
  • Default location: current working directory

6. Write the Document

Write the generated design doc as a markdown file:

# Example - the actual content will be generated based on conversation
cat > ./​my-feature-design.md << 'EOF'
# Design Document: My Feature

## Summary
...

## Background
...

[rest of sections from template]
EOF

7. Report to User

After writing the file:

  • Tell the user the file path
  • Mention any [TODO] sections that need to be filled in
  • Remind them how to paste into Google Docs with formatting:

Pasting into Google Docs:

Standard pasting (Ctrl+V or Cmd+V) will only paste plain text. To convert the Markdown into formatted Google Docs content:

  1. Copy the Markdown content to your clipboard from the file
  2. In your Google Docs document, right-click where you want to paste
  3. From the context menu, select "Paste from Markdown"

The Markdown will be converted to rich text (headings, bold text, lists, tables) and inserted with the correct formatting.

Example Output

# Design Document: User Authentication Refactor

## Summary
Refactor the authentication system to use JWT tokens instead of session cookies...

## Background
The current session-based auth has scaling issues because...

## Goals
- Support horizontal scaling without sticky sessions
- Reduce auth latency by 50%
- Maintain backwards compatibility during migration

## Non-Goals
- Changing the user-facing login flow
- Adding new auth methods (OAuth, SSO)

## Design
### Architecture
...

### API Changes
...

## Alternatives Considered
### Keep session-based auth with Redis
Rejected because...

## Security Considerations
...

## Timeline
...

Notes

  • The template structure may vary - always read the actual template first
  • Keep the generated doc concise but complete
  • If the conversation was exploratory, focus on the decisions that were made
  • Include relevant code snippets or diagrams if discussed in the conversation

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View