Your first spec
In this tutorial, you’ll create a spec, get it approved, implement code against it, and see verification in action. By the end, you’ll understand the complete Verify workflow.
Time: 15 minutes
Prerequisites:
An Aviator account with a connected GitHub repository
Write access to the repository
What you’ll do
Create a spec for a simple code change
Submit it for review and approve it
Implement the change
See verification pass (or fail)
Step 1: Open the spec editor
Go to Verify → Specs in your Aviator dashboard and click New Spec.
You’ll see a split view:
Left: The spec editor
Right: AI assistant chat
Select your repository from the dropdown if you have multiple connected.
Step 2: Describe what you want to build
In the chat panel, describe your change in plain language:
Click Generate Spec. The AI analyzes your description and generates a structured spec.
Step 3: Review the generated spec
You should see something like this in the editor:
Review each section:
Intent — Does this capture what you’re trying to do?
Scope — Are the files correct for your codebase? You might need to adjust the paths.
Acceptance Criteria — Are these the right requirements?
Step 4: Adjust the spec
Let’s say your routes file is actually named router.go. Tell the assistant:
The spec updates. You can also edit the markdown directly in the left panel.
Step 5: Submit for review
When the spec looks right, click Submit for Review.
Select yourself as the reviewer (for this tutorial). In a real workflow, you’d select a teammate.
Add an optional note: “Tutorial spec - please approve”
Click Submit.
Step 6: Approve the spec
Go to Verify → Reviews. You’ll see your pending spec.
Click to open it. As a reviewer, you’re checking:
Does the intent make sense?
Is the scope appropriate?
Are the acceptance criteria complete and verifiable?
For this tutorial, everything looks good. Click Approve.
The spec status changes to Approved. It’s now locked and ready for implementation.
Step 7: View the approved spec
Go back to Verify → Specs and open your spec. You’ll see:
Status: Approved
Who approved it and when
Copy Spec and Download Spec buttons
Click Copy Spec to copy the markdown to your clipboard.
Step 8: Implement the code
Now implement the endpoint. You can:
Paste the spec into an AI coding tool (Cursor, Copilot, etc.)
Implement it manually
Here’s a simple Go implementation:
Commit your changes and push to a branch:
Step 9: Create a pull request
Open a PR for your branch on GitHub.
If you haven’t linked the spec to this PR, comment on the PR:
(You can find the spec ID in the URL when viewing the spec)
Step 10: Watch verification run
After linking (or if auto-link is configured), verification starts automatically.
You’ll see a GitHub check:
Wait for it to complete (usually under a minute for small changes).
Step 11: Check the results
If everything is correct, you’ll see:
Click Details to see the full report:
Your PR is now clear to merge.
What if verification fails?
Let’s say you accidentally included an auth check. Verification might show:
To fix it:
Remove the auth middleware from this route
Push the fix
Verification runs again automatically
What you learned
Specs have three sections: Intent, Scope, and Acceptance Criteria
The AI assistant helps generate and refine specs
Specs must be approved before implementation
Verification checks code against the approved spec
Results show exactly what passed or failed
Next steps
Setting up org invariants - Add organization-wide rules
How-to write effective acceptance criteria - Improve your specs
How verification works - Understand what happens during verification
Last updated
Was this helpful?
