Skip to main content

Spec Writing & Updating

The recommended way to create and update specs is through AI agents using the MCP server:

Spec Creation via MCP

Learn how to create specs using AI agents through the MCP server integration
The MCP server provides tools for:
  • Creating new specs with upsert_spec
  • Editing existing specs (both via tools and direct file editing)
  • Linking specs to issues and other specs
  • Adding references and relationships
Web-based spec creation is in development. For now, use the MCP server for creating specs, and the web interface for viewing and editing them.

Spec Viewing

While spec creation is handled via MCP, the web server excels at visualizing and browsing specs:
sudocode spec board
What you can do in the web interface:
  • View rendered markdown specs with live preview
  • Navigate between specs using [[spec-id]] references
  • See relationships (what implements this spec, what it references)
  • View anchored feedback from completed issues
  • Browse all specs in your project

Spec Editing

Directly view and edit specs from the web interface:
sudocode spec editor
  • Visual markdown editor with live preview
  • Auto-complete for [[references]] and entity IDs
  • Inline relationship creation

Best Practices

Regardless of how you create specs, follow these best practices:
Write specs that clearly define what should be built and why. Focus on requirements, not implementation details.
Connect specs to related specs, issues, and other entities using [[entity-id]] syntax. This builds your project’s knowledge graph.
Specs can be decomposed into smaller sub-specs. Use relationships to model this hierarchy for clarity.
When agents implement issues, they provide feedback about what worked and what didn’t. Use this to improve your specs over time.

Next Steps