By Glue Team
Writing a spec is hard. You must:
Most PMs write specs in isolation, guessing about architecture. Engineers read the spec and point out gaps: "You didn't account for this dependency." "This won't work with our payment system." "We'd need to refactor X first."
Specs grounded in actual codebase data are more complete, more accurate, and faster to write.
Traditional spec writing:
The root cause: Specs aren't grounded in code.
Glue answers technical questions automatically:
Current state analysis: Instead of guessing "Does our API support bulk operations?", Glue shows:
Dependency mapping: Glue shows what your change touches:
Pattern documentation: Instead of writing "We'll follow REST conventions," Glue shows your actual patterns:
Scope and risk quantification: Glue estimates:
# Feature Spec: Bulk User Import
## Overview
[Brief feature description]
## Current State (from Glue)
- API endpoint: /api/users/bulk-import (users-service/bulk-import.ts, line 45)
- Limit: 1000 users per request
- Supported formats: JSON only
- Integration: Queued via bull (users-service/queue/jobs.ts)
## Proposed Change
[What we're adding]
## Affected Systems (Glue dependency analysis)
- users-service: HIGH (new endpoint variant)
- payment-service: MEDIUM (billing impact of bulk imports)
- notification-service: LOW (welcome emails)
- legacy-auth-module: HIGH (requires refactoring to support batch operations)
## Risks (Glue identified)
- Legacy auth module has low test coverage (32%). Recommend refactoring before implementation.
- Payment service has tight coupling to user creation. Bulk operations might exceed rate limits.
## Implementation Plan
1. Refactor legacy-auth-module (4 weeks)
2. Extend bulk-import endpoint (2 weeks)
3. Update payment integration (1 week)
4. Testing (1 week)
## Estimate: 8 weeks (includes refactoring risk buffer)
This spec is grounded in code. Architects read it and nod—it's accurate.
Before Glue: PM writes spec, engineers spend 3-4 hours reviewing and identifying gaps, spec is revised. Cycle repeats. Writing a spec takes 2 weeks.
After Glue: PM writes spec with Glue's analysis built in, engineers confirm/refine in 30 minutes. Spec is written in 3 days.
Time saved per feature: 9 days. Across 20 features per year = 180 hours = 9 weeks of PM time freed.
Q: Does Glue write specs automatically? A: Not fully. Glue provides technical data (current state, dependencies, patterns, risks). PMs write the feature narrative and decisions. Glue + PM collaboration is faster and more accurate than either alone.
Q: What if our codebase changes between when Glue analyzes it and when we write the spec? A: Glue updates continuously as code changes. If the spec is written weeks later, revalidate the technical data—1-hour refresh usually surfaces any critical changes.
Q: How do we use Glue for specs on truly new features (no similar code exists)? A: Glue shows where similar patterns or integrations exist in your codebase. Even for new features, patterns (error handling, auth, data validation) are reused. Glue surfaces those precedents.
Keep reading