用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill aiwg-regenerate-windsurfrules命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| namespace | aiwg |
| name | aiwg-regenerate-windsurfrules |
| platforms | ["all"] |
| description | Regenerate .windsurfrules for Windsurf with preserved team directives |
Regenerate the .windsurfrules file for Windsurf (Codeium) integration, analyzing current project state while preserving team directives and organizational requirements.
Hook file approach (default): Generates AIWG-windsurf.md and adds @AIWG-windsurf.md directive. Note: Windsurf @-link support is unverified — defaults to full inject until confirmed (see #444).
Full inject (--full-inject): Embeds AIWG content inline with AIWG markers.
| Flag | Description |
|---|---|
--no-backup | Skip creating backup file |
--dry-run | Preview changes without writing |
--show-preserved | List all detected preserved content and exit |
--full | Full regeneration, preserve nothing (destructive) |
Unless --no-backup specified:
.windsurfrules exists.windsurfrules.backup-{YYYYMMDD-HHMMSS}Same preservation patterns as other platforms:
<!-- PRESERVE --> ... <!-- /PRESERVE -->.windsurf/Check installed frameworks by scanning:
.windsurf/workflows/ for workflows.windsurf/rules/ for rules.windsurf/skills/ for skillsAGENTS.md for aggregated agentsRead registry for framework versions.
Document Structure:
# .windsurfrules
Project rules for Windsurf AI assistance.
## Project Overview
{Description from README.md or package.json}
## Tech Stack
- **Language**: {detected languages}
- **Framework**: {detected frameworks}
- **Package Manager**: {npm/yarn/pnpm/etc.}
## Development Commands
| Command | Description |
|---------|-------------|
| `npm install` | Install dependencies |
| `npm run build` | Build project |
| `npm test` | Run tests |
## Project Structure
src/ → Source code test/ → Test files docs/ → Documentation
## Code Conventions
{Project-specific conventions}
---
## Team Directives
<!-- PRESERVED SECTION -->
{ALL PRESERVED CONTENT}
<!-- /PRESERVED SECTION -->
---
## AIWG Framework Integration
This project uses AIWG SDLC framework with Windsurf.
### Installed Frameworks
| Framework | Agents | Workflows |
|-----------|--------|-----------|
| sdlc-complete | 54 | 42 |
### Using Agents
Agents are available via AGENTS.md (aggregated format).
### Natural Language Mappings
| Request | Maps To |
|---------|---------|
| "run security review" | flow-security-review-cycle |
| "check status" | project-status |
| "start iteration N" | flow-iteration-dual-track |
## Project Artifacts
{If .aiwg/ exists:}
| Category | Location |
|----------|----------|
| Requirements | @.aiwg/requirements/ |
| Architecture | @.aiwg/architecture/ |
## Core References
| Topic | Reference |
|-------|-----------|
| Orchestration | @~/.local/share/ai-writing-guide/agentic/code/addons/aiwg-utils/prompts/core/orchestrator.md |
| Agent Design | @~/.local/share/ai-writing-guide/agentic/code/addons/aiwg-utils/prompts/agents/design-rules.md |
{If SDLC framework installed:}
## SDLC References
| Topic | Reference |
|-------|-----------|
| Natural Language | @~/.local/share/ai-writing-guide/agentic/code/frameworks/sdlc-complete/docs/simple-language-translations.md |
## Resources
- **AIWG Installation**: `~/.local/share/ai-writing-guide`
---
<!--
Add team-specific notes below.
Content in preserved sections survives regeneration.
-->
If --dry-run: Display content, do not write.
Otherwise:
.windsurfrules.windsurfrules Regenerated
==========================
Backup: .windsurfrules.backup-20251206-153512
Preserved: 2 sections, 15 lines
Regenerated: Project overview, structure, AIWG integration
Output: .windsurfrules (187 lines)
# Regenerate .windsurfrules
/aiwg-regenerate-windsurfrules
# Preview changes
/aiwg-regenerate-windsurfrules --dry-run
# Check preserved content
/aiwg-regenerate-windsurfrules --show-preserved
# Full regeneration
/aiwg-regenerate-windsurfrules --full
| Command | Regenerates |
|---|---|
/aiwg-regenerate-claude | CLAUDE.md |
/aiwg-regenerate-warp | WARP.md |
/aiwg-regenerate-agents | AGENTS.md |
/aiwg-regenerate-cursorrules | .cursorrules |
/aiwg-regenerate-windsurfrules | .windsurfrules |
/aiwg-regenerate-copilot | copilot-instructions.md |
/aiwg-regenerate | Auto-detect |