You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add getStaleSpecs helper to detect specs in-progress for > 7 days
- Add updated_at to SpecData type for staleness calculation
- Board tool now returns warnings array with stale spec alerts
- Helps enforce SDD workflow compliance
Part of spec 121: MCP-First Agent Experience
* Use this when creating new specs to ensure proper dependency linking
8
+
*/
9
+
exportfunctionspecCreationWorkflowPrompt(){
10
+
return[
11
+
'create-spec',
12
+
{
13
+
title: 'Create Spec with Dependencies',
14
+
description: 'Complete workflow for creating a new spec including proper dependency linking. Prevents the common issue of content referencing specs without frontmatter links.',
15
+
},
16
+
()=>({
17
+
messages: [
18
+
{
19
+
role: 'user'asconst,
20
+
content: {
21
+
type: 'text'asconst,
22
+
text: `## Create Spec Workflow 📝
23
+
24
+
Follow these steps to create a well-linked spec:
25
+
26
+
### Step 1: Pre-Creation Research
27
+
Before creating, use \`search\` to find related specs:
28
+
- Search for similar features or components
29
+
- Identify potential dependencies
30
+
- Note specs to reference
31
+
32
+
### Step 2: Create the Spec
33
+
Use \`create\` with the spec details:
34
+
\`\`\`
35
+
create {
36
+
"name": "your-spec-name",
37
+
"title": "Human Readable Title",
38
+
"description": "Initial overview content...",
39
+
"priority": "medium",
40
+
"tags": ["relevant", "tags"]
41
+
}
42
+
\`\`\`
43
+
44
+
### Step 3: Link Dependencies (CRITICAL)
45
+
After creating, **immediately** link any referenced specs:
Copy file name to clipboardExpand all lines: packages/cli/src/mcp/tools/validate.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,11 @@ export function validateTool(): ToolDefinition {
15
15
'validate',
16
16
{
17
17
title: 'Validate Specs',
18
-
description: 'Validate specifications for quality issues like excessive length, missing sections, or complexity problems. Use this before committing changes or for project health checks.',
18
+
description: 'Validate specifications for quality issues like excessive length, missing sections, or complexity problems. Use this before committing changes or for project health checks. Use checkDeps to detect content/frontmatter dependency misalignment.',
19
19
inputSchema: {
20
20
specs: z.array(z.string()).optional().describe('Specific specs to validate. If omitted, validates all specs in the project.'),
21
21
maxLines: z.number().optional().describe('Custom line limit for complexity checks (default: 400 lines).'),
22
+
checkDeps: z.boolean().optional().describe('Check for content/frontmatter dependency alignment. Detects when spec content references other specs but those references are not in frontmatter depends_on/related fields.'),
22
23
},
23
24
outputSchema: {
24
25
passed: z.boolean(),
@@ -41,6 +42,7 @@ export function validateTool(): ToolDefinition {
0 commit comments