소스 정보
- 저장소
- jmagly/carbonyl-agent
- 최근 소스 활동
- 2026년 5월 12일 16:51
- 감지된 SKILL.md 언어
- 영어
- 스타
- 12
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jmagly/carbonyl-agent --skill aiwg-regenerate명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | aiwg-regenerate |
| description | Regenerate platform context file with preserved team directives |
| platforms | ["codex"] |
Deterministic execution (#1266): this skill has a
script:entrypoint that shells out toaiwg regenerate "$@". Preferaiwg run skill aiwg-regenerate -- <flags>over agent-mediated invocation. When invoked as a slash command on platforms without a deployed command stub, the agent MUST run onlyaiwg regenerate <flags>and report its output — no exploratory permission requests, no multi-step planning. The deterministic CLI is the source of truth.
Analyze current project state and regenerate the platform context file (CLAUDE.md, WARP.md, or AGENTS.md) while preserving team directives and organizational requirements.
By default, uses the hook file architecture: generates AIWG.md (or provider equivalent) and adds a single directive to the context file. Use --full-inject for the legacy inline approach.
| 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) |
--full-inject | Inject AIWG content directly into context file (legacy/compatibility mode) |
--all | Regenerate for ALL installed providers simultaneously |
--migrate | Migrate existing full-injection to hook file approach |
Detect current platform automatically by checking for existing context files:
| Priority | Check | Platform | Command |
|---|---|---|---|
| 1 | CLAUDE.md exists | Claude Code | /aiwg-regenerate-claude |
| 2 | WARP.md exists | Warp Terminal | /aiwg-regenerate-warp |
| 3 | .cursorrules exists | Cursor | /aiwg-regenerate-cursorrules |
| 4 | .windsurfrules exists | Windsurf | /aiwg-regenerate-windsurfrules |
| 5 | .github/copilot-instructions.md exists | GitHub Copilot | /aiwg-regenerate-copilot |
| 6 | CODEX.md exists | Codex | /aiwg-regenerate-codex |
| 7 | .opencode/context.md exists | OpenCode | /aiwg-regenerate-opencode |
| 8 | AGENTS.md exists + .factory/ | Factory AI | /aiwg-regenerate-factory |
| 9 | AGENTS.md exists | Windsurf/generic | /aiwg-regenerate-agents |
| 10 | .factory/ exists | Factory AI | /aiwg-regenerate-factory |
| 11 | .cursor/ exists | Cursor | /aiwg-regenerate-cursorrules |
| 12 | .windsurf/ exists | Windsurf | /aiwg-regenerate-windsurfrules |
| 13 | .github/agents/ exists | GitHub Copilot | /aiwg-regenerate-copilot |
If multiple files exist, use priority order. If ambiguous, ask user.
--all ModeRegenerate all detected providers simultaneously:
Detected providers: claude, warp, cursor
Regenerating all...
✓ CLAUDE.md → AIWG.md (312 lines)
✓ WARP.md → AIWG-warp.md (298 lines)
✓ .cursorrules → AIWG-cursor.md (295 lines)
Regenerated 3 providers.
For explicit platform targeting, use:
/aiwg-regenerate-claude → CLAUDE.md + AIWG.md/aiwg-regenerate-warp → WARP.md + AIWG-warp.md/aiwg-regenerate-agents → AGENTS.md + AIWG-agents.md/aiwg-regenerate-cursorrules → .cursorrules + AIWG-cursor.md/aiwg-regenerate-windsurfrules → .windsurfrules + AIWG-windsurf.md/aiwg-regenerate-copilot → copilot-instructions.md + AIWG-copilot.md/aiwg-regenerate-factory → AGENTS.md + AIWG-factory.md/aiwg-regenerate-opencode → .opencode/context.md + AIWG-opencode.md/aiwg-regenerate-codex → CODEX.md (full inject, no @-link support)Determine which context file to regenerate based on platform detection.
Report:
Platform detected: Claude Code
Target file: CLAUDE.md
Unless --no-backup flag is set:
YYYYMMDD-HHMMSS{filename}.backup-{timestamp}Backup created: CLAUDE.md.backup-20251206-152233
Parse existing file and extract content matching preservation patterns.
Preservation Patterns:
Explicit Markers
<!-- PRESERVE -->
Content here is always preserved
<!-- /PRESERVE -->
<!-- PRESERVE: Single line directive -->
Section Headings (case-insensitive)
## Team * - Team rules/conventions## Org * / ## Organization * - Org policies## Definition of Done - DoD criteria## Code Quality * - Quality standards## Security Requirements / ## Security Policy - Security policies## Convention* - Conventions## Rules / ## Guidelines - Rules## Important * / ## Critical * - Important notes## NFR* / ## Non-Functional * - NFRs## *Standards - Standards## Project-Specific Notes - User notesDirective Lines (within non-preserved sections)
<!-- PRESERVE:If --show-preserved flag:
Display all preserved content and exit without regenerating.
Preserved Content Analysis
==========================
## Sections (3 found):
### Team Conventions (lines 45-62, 18 lines)
- Do not add claude code signature to commit messages
- All Python commands must run within venv
- Commits made without attribution
... (15 more lines)
### Definition of Done (lines 78-86, 9 lines)
- All tests passing
- Code reviewed
- Documentation updated
... (6 more lines)
### Security Requirements (lines 92-98, 7 lines)
- All API keys via environment variables
- No secrets in code
... (5 more lines)
## Inline Directives (2 found):
Line 34: <!-- PRESERVE: Use internal npm registry for @company/* -->
Line 112: Never deploy on Fridays without approval
Total: 36 lines will be preserved
Scan project to extract regenerable content:
Package Detection:
# Check for package files
ls package.json pyproject.toml requirements.txt go.mod Cargo.toml pom.xml build.gradle composer.json Gemfile 2>/dev/null
Extract from package.json:
name, description, versionscripts → Development commandsdependencies, devDependencies → Tech stackExtract from other sources:
Makefile → Make targetsREADME.md → Project description (first paragraph)Detect Test Framework:
jest.config.* → Jestvitest.config.* → Vitestpytest.ini, conftest.py → Pytest*_test.go files → Go testing.rspec → RSpecDetect CI/CD:
.github/workflows/*.yml → GitHub Actions.gitlab-ci.yml → GitLab CIJenkinsfile → Jenkins.circleci/ → CircleCIReport:
Project Analysis
================
Languages: TypeScript, Python
Package Manager: npm
Build Commands: 12 scripts detected
Test Framework: Vitest
CI/CD: GitHub Actions (3 workflows)
Check installed AIWG frameworks:
Check Registry
# Project registry
cat .aiwg/frameworks/registry.json 2>/dev/null
# Global registry
cat ~/.local/share/ai-writing-guide/registry.json 2>/dev/null
Scan Deployed Assets
# Count agents
ls .claude/agents/*.md 2>/dev/null | wc -l
# Count commands
ls .claude/commands/*.md 2>/dev/null | wc -l
Identify Frameworks
Report:
AIWG State
==========
Frameworks:
- sdlc-complete v1.0.0 (54 agents, 42 commands)
- aiwg-utils v1.0.0 (1 agent, 4 commands)
If --dry-run flag:
Display generated content without writing.
Structure:
# CLAUDE.md
This file provides guidance to Claude Code when working with this codebase.
## Repository Purpose
{Generated from README.md first paragraph or package.json description}
## Tech Stack
{Generated list of detected languages, frameworks, runtimes}
## Development Commands
{Generated from package.json scripts, Makefile targets, etc.}
## Testing
{Generated from detected test framework}
## Architecture
{Generated from directory structure analysis}
## Important Files
{Key files identified during analysis}
---
## Team Directives & Standards
<!-- PRESERVED SECTION - Content maintained across regeneration -->
{ALL PRESERVED CONTENT INSERTED HERE}
<!-- /PRESERVED SECTION -->
---
## AIWG Framework Integration
{Generated from current AIWG installation state}
### Installed Frameworks
{List of installed frameworks with versions}
### Available Agents
{Summary of deployed agents}
### Available Commands
{Summary of deployed commands}
### Orchestration
{Core orchestrator role description}
---
<!--
USER NOTES
Add team directives, conventions, or project-specific notes below.
Content in this file's preserved sections is maintained during regeneration.
Use <!-- PRESERVE --> markers for content that must be kept.
-->
Regeneration Complete
=====================
Backup: CLAUDE.md.backup-20251206-152233
Preserved (36 lines):
- Team Conventions (18 lines)
- Definition of Done (9 lines)
- Security Requirements (7 lines)
- Inline directives (2)
Regenerated:
- Repository Purpose
- Tech Stack (TypeScript, Python)
- Development Commands (12 scripts)
- Testing (Vitest)
- Architecture
- AIWG Integration (sdlc-complete, aiwg-utils)
Output: CLAUDE.md (428 lines)
# Standard regeneration with backup and preservation
/aiwg-regenerate
# Preview what would be generated
/aiwg-regenerate --dry-run
# See what content would be preserved
/aiwg-regenerate --show-preserved
# Full regeneration (loses all user content)
/aiwg-regenerate --full
# Regenerate without backup (use with caution)
/aiwg-regenerate --no-backup
If --full flag is used, display warning:
WARNING: Full regeneration will discard ALL existing content.
The following will be LOST:
- Team Conventions (18 lines)
- Definition of Done (9 lines)
- Security Requirements (7 lines)
- 2 inline directives
This cannot be undone (backup will still be created).
Continue with full regeneration? [y/N]
When --interactive is specified, ask strategic questions before regenerating:
Native UX tool preference: For each question, use the platform's native interaction tool if available (e.g., AskUserQuestion in Claude Code). This provides a proper input UI rather than plain text output. If no native tool is available, fall back to formatted markdown with clear options. Ask one question per interaction turn.
See @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/native-ux-tools.md for the full pattern.
| Condition | Action |
|---|---|
| No existing file | Generate fresh document with empty preserved section |
| File read error | Report error, abort |
| Backup write fails | Abort with error (never overwrite without backup) |
| AIWG not detected | Generate project-only content, warn user |
| Parse error | Warn, offer --full as recovery option |