wiki-generator
Wiki Generator Skill
目标
将项目前端架构与核心业务知识沉淀为可维护的多页面 Wiki,并在回答问题或代码变更后保持文档与代码一致。
全局硬规则
- 文档根目录固定为
.cursor/skills/wiki-generator/wiki/。 - 所有 Wiki 页面必须可从
wiki/_sidebar.md导航到。 - 生成或更新架构/链路类文档时,必须包含至少 1 个 Mermaid 图。
- 生成或更新任意 Markdown 时,文末必须包含
Sources: 资料来源:,并列出代码路径与关键行号范围。 - 文档间链接必须使用相对路径。
工作流 1:梳理与初始化文档
触发条件
- 首次构建 Wiki 或要求全量梳理架构时。
More from dtyq/magic
find-skill
Search and install skills from the platform skill library, skill market, or skillhub. Use when the agent needs to find or install a skill to expand its capabilities. Always search the platform first; fall back to skillhub only if nothing is found.
26skill-vetter
Security-first skill vetting protocol for AI agents. Use before installing any skill from the platform skill market, skillhub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns to determine whether a skill is safe to install.
23ui-data-testid
Add stable `data-testid` attributes by default for new or refactored UI components. Use when implementing React/TSX views, shadcn/antd-style components, dropdown/menu configs, or interactive UI flows that need reliable selectors for unit/E2E tests.
23code-review-expert
Expert code review of current git changes with a senior engineer lens. Detects SOLID violations, security risks, and proposes actionable improvements.
21env-manager
Manage persistent environment variables. Use when the user provides API keys or other configuration values that need to be saved and reused across sessions.
21antd-style-to-tailwind
Migrate existing antd-style CSS-in-JS (createStyles) components to Tailwind CSS utility classes with full dark mode support, following the project's style system transition strategy. Use when the user asks to migrate, convert, or rewrite antd-style components to Tailwind, or when working on new components in files that already use antd-style.
20