From 047901cb272da1f664b659f539fc9c6c8a79980c Mon Sep 17 00:00:00 2001 From: root <1647273252@qq.com> Date: Sat, 9 May 2026 15:12:13 +0800 Subject: [PATCH] fix: make template metadata line breaks markdownlint-safe --- templates/plan-template.md | 23 ++++++++++++++++------- templates/spec-template.md | 13 ++++++++----- templates/tasks-template.md | 9 +++++---- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/templates/plan-template.md b/templates/plan-template.md index ee57c35656..4fe6c8844b 100644 --- a/templates/plan-template.md +++ b/templates/plan-template.md @@ -1,6 +1,7 @@ # Implementation Plan: [FEATURE] **Branch**: `[###-feature-name]` | **Date**: [DATE] | **Spec**: [link] + **Input**: Feature specification from `/specs/[###-feature-name]/spec.md` **Note**: This template is filled in by the `__SPECKIT_COMMAND_PLAN__` command. See `.specify/templates/plan-template.md` for the execution workflow. @@ -17,14 +18,22 @@ the iteration process. --> -**Language/Version**: [e.g., Python 3.11, Swift 5.9, Rust 1.75 or NEEDS CLARIFICATION] -**Primary Dependencies**: [e.g., FastAPI, UIKit, LLVM or NEEDS CLARIFICATION] -**Storage**: [if applicable, e.g., PostgreSQL, CoreData, files or N/A] -**Testing**: [e.g., pytest, XCTest, cargo test or NEEDS CLARIFICATION] +**Language/Version**: [e.g., Python 3.11, Swift 5.9, Rust 1.75 or NEEDS CLARIFICATION] + +**Primary Dependencies**: [e.g., FastAPI, UIKit, LLVM or NEEDS CLARIFICATION] + +**Storage**: [if applicable, e.g., PostgreSQL, CoreData, files or N/A] + +**Testing**: [e.g., pytest, XCTest, cargo test or NEEDS CLARIFICATION] + **Target Platform**: [e.g., Linux server, iOS 15+, WASM or NEEDS CLARIFICATION] -**Project Type**: [e.g., library/cli/web-service/mobile-app/compiler/desktop-app or NEEDS CLARIFICATION] -**Performance Goals**: [domain-specific, e.g., 1000 req/s, 10k lines/sec, 60 fps or NEEDS CLARIFICATION] -**Constraints**: [domain-specific, e.g., <200ms p95, <100MB memory, offline-capable or NEEDS CLARIFICATION] + +**Project Type**: [e.g., library/cli/web-service/mobile-app/compiler/desktop-app or NEEDS CLARIFICATION] + +**Performance Goals**: [domain-specific, e.g., 1000 req/s, 10k lines/sec, 60 fps or NEEDS CLARIFICATION] + +**Constraints**: [domain-specific, e.g., <200ms p95, <100MB memory, offline-capable or NEEDS CLARIFICATION] + **Scale/Scope**: [domain-specific, e.g., 10k users, 1M LOC, 50 screens or NEEDS CLARIFICATION] ## Constitution Check diff --git a/templates/spec-template.md b/templates/spec-template.md index 4581e40529..ceb2877621 100644 --- a/templates/spec-template.md +++ b/templates/spec-template.md @@ -1,8 +1,11 @@ # Feature Specification: [FEATURE NAME] -**Feature Branch**: `[###-feature-name]` -**Created**: [DATE] -**Status**: Draft +**Feature Branch**: `[###-feature-name]` + +**Created**: [DATE] + +**Status**: Draft + **Input**: User description: "$ARGUMENTS" ## User Scenarios & Testing *(mandatory)* @@ -11,7 +14,7 @@ IMPORTANT: User stories should be PRIORITIZED as user journeys ordered by importance. Each user story/journey must be INDEPENDENTLY TESTABLE - meaning if you implement just ONE of them, you should still have a viable MVP (Minimum Viable Product) that delivers value. - + Assign priorities (P1, P2, P3, etc.) to each story, where P1 is the most critical. Think of each story as a standalone slice of functionality that can be: - Developed independently @@ -85,7 +88,7 @@ ### Functional Requirements - **FR-001**: System MUST [specific capability, e.g., "allow users to create accounts"] -- **FR-002**: System MUST [specific capability, e.g., "validate email addresses"] +- **FR-002**: System MUST [specific capability, e.g., "validate email addresses"] - **FR-003**: Users MUST be able to [key interaction, e.g., "reset their password"] - **FR-004**: System MUST [data requirement, e.g., "persist user preferences"] - **FR-005**: System MUST [behavior, e.g., "log all security events"] diff --git a/templates/tasks-template.md b/templates/tasks-template.md index cc649380b9..7fff087cc5 100644 --- a/templates/tasks-template.md +++ b/templates/tasks-template.md @@ -6,6 +6,7 @@ description: "Task list template for feature implementation" # Tasks: [FEATURE NAME] **Input**: Design documents from `/specs/[###-feature-name]/` + **Prerequisites**: plan.md (required), spec.md (required for user stories), research.md, data-model.md, contracts/ **Tests**: The examples below include test tasks. Tests are OPTIONAL - only include them if explicitly requested in the feature specification. @@ -25,21 +26,21 @@ description: "Task list template for feature implementation" - **Mobile**: `api/src/`, `ios/src/` or `android/src/` - Paths shown below assume single project - adjust based on plan.md structure -