init
Initialize .saga/ directory structure for SAGA epic/story workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Initialize .saga/ directory structure for SAGA epic/story workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Start autonomous story implementation
Releases a new version of SAGA (plugin + dashboard). Bumps version numbers, updates CHANGELOG.md, publishes dashboard to npm, and creates GitHub release. Use when the user says 'release', 'publish', 'new version', or 'version bump'.
Collaboratively plan a goal, then create stories (standalone or epic-based)
Create a new epic definition with vision and architecture
Generate stories from an epic
List all running SAGA sessions
| name | init |
| description | Initialize .saga/ directory structure for SAGA epic/story workflow |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | Read, Bash(mkdir:*, ls:*, grep:*), Edit |
Initialize the .saga/ directory structure for epic/story workflow management.
| Subject | Description | Active Form | Blocked By | Blocks |
|---|---|---|---|---|
| Check existing .saga | Check if .saga/ already exists using ls .saga/ 2>/dev/null. If it exists, report to user: "SAGA is already initialized in this project. The .saga/ directory exists with:" followed by listing contents. Then stop - do not reinitialize. If it doesn't exist, proceed to create structure. | Checking existing structure | - | Create directory structure |
| Create directory structure | Create the SAGA directory structure using Bash: mkdir -p .saga/epics .saga/stories .saga/archive .saga/worktrees. This creates: (1) .saga/epics/ - for epic definition files, (2) .saga/stories/ - for story data folders (JSON), (3) .saga/archive/ - for completed/archived stories, (4) .saga/worktrees/ - for git worktree isolation during story execution. | Creating directories | Check existing .saga | Update gitignore |
| Update gitignore | Check if .gitignore exists and if it already contains .saga/worktrees/. Use grep -q '.saga/worktrees/' .gitignore 2>/dev/null to check. If pattern NOT found: append the worktrees pattern to .gitignore using Edit tool. Add a newline, then the comment # SAGA worktrees (git worktree isolation for stories), then .saga/worktrees/ on the next line. If .gitignore doesn't exist, create it with just the comment and pattern. If pattern already exists, skip this step. | Updating .gitignore | Create directory structure | Report completion |
| Report completion | Report success to the user with the following message: "SAGA initialized successfully!" followed by "Created directory structure:" with bullet points for .saga/epics/ (epic definitions), .saga/stories/ (story data folders, JSON), .saga/archive/ (completed stories), .saga/worktrees/ (worktree isolation, gitignored). Then show "Next steps:" section with: (1) Plan your work: /plan <goal>, (2) Execute a story: /execute-story <story>. | Reporting completion | Update gitignore | - |
After initialization, tell the user:
SAGA initialized successfully!
Created directory structure:
.saga/epics/ - Epic definition files.saga/stories/ - Story data folders (JSON).saga/archive/ - Completed/archived stories.saga/worktrees/ - Git worktree isolation (gitignored)Next steps:
/plan <goal> to collaboratively plan and create stories/execute-story <story> to start autonomous story execution/init command is idempotent - running it again on an initialized project will simply report the existing structure.saga/worktrees/ directory is gitignored because worktrees contain full repo checkouts for story isolation.saga/ and is committed to the repository (except worktrees).saga/stories/ directory stores story data as JSON files and is tracked in git