speckit_constitution
Define project principles and foundational guidelines to establish clear direction and alignment for your team's specifications and workflows.
Instructions
Establish project principles using spec-kit
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:255-270 (handler)The handler function that implements the core logic for the 'speckit_constitution' tool. It returns a standardized message prompting the AI to read or create a project constitution file.private async handleConstitution(commandsPath: string) { return { messages: [ { role: "user", content: { type: "text", text: `Please read the project constitution at 'commands/speckit.constitution'. [Note that if this file exists, it is generally in the current directory's "./.specify/memory/constitution.md" File] [It's important. You must read it]. If the file is missing or empty, create it with principles focused on code quality, testing standards, user experience consistency, and performance requirements. If it exists, review and use it as the foundation.`, }, }, ], }; }
- src/index.ts:136-143 (registration)Tool registration in the ListToolsRequestSchema handler, defining the tool's name, description, and empty input schema.{ name: "speckit_constitution", description: "Establish project principles using spec-kit", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:200-202 (registration)Dispatch case in the CallToolRequestSchema switch statement that routes tool calls to the handleConstitution method.case "speckit_constitution": result = await this.handleConstitution(commandsPath); break;
- src/index.ts:139-142 (schema)Input schema definition for the tool (empty object, no parameters required).inputSchema: { type: "object", properties: {}, },