agentic/code/addons/aiwg-utils/skills/aiwg-regenerate-cursorrules/SKILL.md
Regenerate .cursorrules for Cursor with preserved team directives
npx skillsauth add jmagly/aiwg aiwg-regenerate-cursorrulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Regenerate the .cursorrules file for Cursor IDE integration, analyzing current project state while preserving team directives and organizational requirements.
Hook file approach (default): Generates AIWG-cursor.md and adds @AIWG-cursor.md directive to .cursorrules. Note: Cursor's @-link support in .cursorrules is partially confirmed — see #444.
Full inject (--full-inject): Embeds AIWG content inline with AIWG markers (safe fallback).
| 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:
.cursorrules exists.cursorrules.backup-{YYYYMMDD-HHMMSS}Same preservation patterns as other platforms:
<!-- PRESERVE --> ... <!-- /PRESERVE -->.cursor/Check installed frameworks by scanning:
.cursor/agents/ for deployed agents.cursor/rules/ for MDC rules.cursor/commands/ for commandsRead registry for framework versions.
Document Structure:
# .cursorrules
Project rules for Cursor 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 Cursor.
### Installed Frameworks
| Framework | Agents | Commands |
|-----------|--------|----------|
| sdlc-complete | 54 | 42 |
### Using Agents
Invoke agents via @-mention in Cursor:
```text
@security-architect Review the authentication implementation
@test-engineer Generate unit tests for the user service
| Request | Maps To | |---------|---------| | "run security review" | flow-security-review-cycle | | "check status" | project-status | | "start iteration N" | flow-iteration-dual-track |
{If .aiwg/ exists:}
| Category | Location | |----------|----------| | Requirements | @.aiwg/requirements/ | | Architecture | @.aiwg/architecture/ |
| 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:}
| Topic | Reference | |-------|-----------| | Natural Language | @~/.local/share/ai-writing-guide/agentic/code/frameworks/sdlc-complete/docs/simple-language-translations.md |
~/.local/share/ai-writing-guide
### Step 6: Write Output
**If `--dry-run`:** Display content, do not write.
**Otherwise:**
1. Write to `.cursorrules`
2. Report summary
Backup: .cursorrules.backup-20251206-153512
Preserved: 2 sections, 15 lines Regenerated: Project overview, structure, AIWG integration
Output: .cursorrules (187 lines)
## Examples
```bash
# Regenerate .cursorrules
/aiwg-regenerate-cursorrules
# Preview changes
/aiwg-regenerate-cursorrules --dry-run
# Check preserved content
/aiwg-regenerate-cursorrules --show-preserved
# Full regeneration
/aiwg-regenerate-cursorrules --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 |
data-ai
Report which research-corpus radar sidecars are overdue for refresh. Computes staleness (days since last refresh vs the cadence window) for every radar, sorted most-overdue-first. Runs via `aiwg corpus radar-status`.
data-ai
Aggregate research-corpus radar sidecars into a corpus or per-cluster freshness report — totals, overdue count, per-cluster / per-GRADE / per-trajectory breakdowns, an overdue table, and per-radar rationale snippets. Runs via `aiwg corpus radar-report`.
testing
Scaffold radar/freshness sidecars for research-corpus REFs. Pulls title/authors from the citation sidecar and GRADE from the analysis doc, defaults the refresh cadence from GRADE and the cluster from a corpus-local map, and stamps documentation/radar/REF-XXX-radar.md. Runs via `aiwg corpus radar-init`.
data-ai
Compute an entity's publication trajectory — per-year paper counts, topic drift, hot-streak detection (≥3 consecutive A-grade years), and career phase. Runs via `aiwg corpus profile-temporal`.