Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

test-specs-docs测试规格文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

912

周安装

38

GitHub Stars

6

下载量

304
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:test-specs-docs(测试规格文档)
来源仓库:https://github.com/duc01226/easyplatform
仓库路径:skills/test-specs-docs
安装命令:
npx skills add https://github.com/duc01226/easyplatform --skill test-specs-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/duc01226/easyplatform --skill test-specs-docs

简介

用于辅助文档、README、Markdown 和内容稿件的整理与改写。

  • 适合提炼结构、补齐章节、统一术语或检查链接,提升文档可读性。
  • 使用时需保留项目已有事实和命令,避免将未确认信息写成确定结论。
  • 涉及对外文案时,应控制语气,防止过度营销或夸大能力。
  • 安装方式:通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI。

SKILL.md

[IMPORTANT] Use TaskCreate to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ATTENTION ask user whether to skip.
  • docs/test-specs/ — Test specifications dashboard (canonical sync target; read all module READMEs before syncing)

Quick Summary

Goal: Sync test specifications between feature docs (Section 15) and docs/test-specs/ dashboard. Supports forward sync (feature docs → dashboard), reverse sync (dashboard → feature docs), and bidirectional reconciliation. Feature docs are the canonical TC registry.

Workflow:

  1. Context Gathering — Identify module, read feature doc Section 15 for canonical TCs
  2. Sync Test Specs — Aggregate TCs from feature docs into docs/test-specs/ dashboard views
  3. Index Updates — Update PRIORITY-INDEX.md and master README.md

Key Rules:

  • Test case IDs follow TC-{FEATURE}-{NNN} format
  • Every test case MUST ATTENTION reference actual source code (anti-hallucination)
  • MUST ATTENTION READ references/test-spec-template.md before executing
  • Verify IDs against PRIORITY-INDEX.md to avoid duplicates
  • Source of truth: Feature docs Section 15 is the canonical TC registry. This skill SYNCS from there.

Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).

  • docs/project-reference/domain-entities-reference.md — Domain entity catalog, relationships, cross-service sync (read when task involves business entities/models) (content auto-injected by hook — check for [Injected:...] header before reading)

Project Pattern Discovery

Before implementation, search your codebase for project-specific patterns:

  • Search for: test-specs, TC-, test specifications
  • Look for: existing test spec folders, priority indexes, module test documents
MANDATORY IMPORTANT MUST ATTENTION Read the integration-test-reference.md companion doc for project-specific patterns and code examples. If file not found, continue with search-based discovery above.

Test Specifications Documentation

Generate comprehensive test specifications following project conventions with Given-When-Then format and code evidence.


Prerequisites

MUST ATTENTION READ references/test-spec-template.md before executing -- contains full module test spec template, Given-When-Then best practices, acceptance criteria format, evidence requirements, and complete example required by Phase 2.

Output Structure

docs/test-specs/
  README.md              # Master index
  PRIORITY-INDEX.md      # All tests by P0-P3
  INTEGRATION-TESTS.md   # Cross-module scenarios
  VERIFICATION-REPORT.md # Verification status
  {Module}/README.md     # Module test specs

Test Case ID Format

TC-{FEATURE}-{NNN}

TC format: TC-{FEATURE}-{NNN} — feature codes in docs/project-reference/feature-docs-reference.md and each feature doc's Section 15.

TC Code Numbering Rules

When creating new TC-{FEATURE}-{NNN} codes:

  1. Always check the feature doc's firstdocs/business-features/{App}/detailed-features/ contains existing TC codes. New codes must not collide.
  2. Existing docs use decade-based grouping — e.g., GM: 001-004 (CRUD), 011-013 (validation), 021-023 (permissions), 031-033 (events). Find the next free decade.
  3. If a collision is unavoidable — renumber in the doc side only. Keep [Trait("TestSpec")] in.cs files unchanged and add a renumbering note in the doc.
  4. Feature doc is the canonical registry — the [Trait("TestSpec")] in test files is for traceability, not the source of truth for numbering.

Priority Classification

PriorityDescriptionGuideline
P0 CriticalSecurity, auth, data integrityIf this fails, users can't work or data at risk
P1 HighCore business workflowsCore happy-path for business operations
P2 MediumSecondary featuresEnhances but doesn't block core workflows
P3 LowUI enhancements, non-essentialNice-to-have polish

Workflow

Phase 1: Context Gathering

  1. Identify target module from user request or codebase search
  2. Read existing specs: docs/test-specs/README.md, docs/test-specs/{Module}/README.md, PRIORITY-INDEX.md
  3. Gather code evidence: Validation logic, business rules, authorization, edge cases

Phase 2: Write Test Specifications

⚠️ MUST ATTENTION READ: references/test-spec-template.md for full module template, GWT best practices, and complete example.

Each test case requires: Priority, Preconditions, Given-When-Then steps, Acceptance Criteria (success + failure), Test Data (JSON), Edge Cases, Evidence (controller + handler refs + code snippets), Related Files table.

Phase 3: Index Updates

  1. Add new test cases to PRIORITY-INDEX.md in appropriate priority section
  2. Ensure master docs/test-specs/README.md links to module

Phase 4: Reverse Sync (test-specs/ → feature docs) — Optional

When user says "sync test specs to feature docs" or "reverse sync":

  1. Read docs/test-specs/{Module}/README.md — extract all TCs
  2. Read target feature doc Section 15 — extract existing TCs
  3. Identify TCs present in test-specs/ but missing from feature doc Section 15
  4. For each missing TC: use Edit to insert into feature doc Section 15
  5. Preserve feature doc format (full TC template with GWT, evidence, etc.)

Direction detection:

  • "sync test specs" / "update dashboard" → Forward (feature docs → test-specs/) — Phase 2-3
  • "sync to feature docs" / "reverse sync" / "update feature docs from test specs" → Reverse — Phase 4
  • "full sync" / "bidirectional sync" → Both directions

Anti-Hallucination Protocols

  • Every test case MUST ATTENTION reference actual source code
  • Read validation logic before writing acceptance criteria
  • Verify authorization policies from controller attributes
  • Verify line numbers are current using Grep
  • Read PRIORITY-INDEX.md before assigning new IDs - never duplicate

Quality Checklist

  • Test case IDs follow TC-{FEATURE}-{NNN} format (unified)
  • All IDs unique (verified against PRIORITY-INDEX.md)
  • Priority assigned per classification guidelines
  • Given-When-Then format for all test steps
  • Acceptance criteria include success AND failure cases
  • Test data in JSON format
  • Edge cases with expected outcomes
  • Code evidence with file paths and line numbers
  • Code snippets in <details> blocks
  • Related files table (Backend/Frontend layers)
  • PRIORITY-INDEX.md updated
  • Links to business-features docs

References

FileContents
references/test-spec-template.mdFull module template, GWT best practices, acceptance criteria format, evidence requirements, complete example

Next Steps

MANDATORY IMPORTANT MUST ATTENTION — NO EXCEPTIONS after completing this skill, you MUST ATTENTION use AskUserQuestion to present these options. Do NOT skip because the task seems "simple" or "obvious" — the user decides:

  • "/watzup (Recommended)" — Wrap up session and review all changes
  • "/review-changes" — Review all uncommitted changes before commit
  • "Skip, continue manually" — user decides

Closing Reminders

  • IMPORTANT MUST ATTENTION break work into small todo tasks using TaskCreate BEFORE starting
  • IMPORTANT MUST ATTENTION search codebase for 3+ similar patterns before creating new code
  • IMPORTANT MUST ATTENTION cite file:line evidence for every claim (confidence >80% to act)
  • IMPORTANT MUST ATTENTION add a final review todo task to verify work quality MANDATORY IMPORTANT MUST ATTENTION READ the following files before starting:
  • IMPORTANT MUST ATTENTION READ references/test-spec-template.md before starting
  • IMPORTANT MUST ATTENTION READ docs/project-reference/feature-docs-reference.md for TC ID formats and feature codes
  • IMPORTANT MUST ATTENTION READ CLAUDE.md before starting

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.94%
按下载量换算85

windsurf

24.74%
按下载量换算75

OpenCode

20.79%
按下载量换算63

Codex

12.9%
按下载量换算39

Antigravity

7.81%
按下载量换算24

Gemini CLI

3.74%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills