askill
aix-init

aix-initSafety 95Repository

Initialize or upgrade aix framework in a project. Detects tech stack, generates appropriate tier structure, and sets up Claude Code integration.

0 stars
1.2k downloads
Updated 2/22/2026

Package Files

Loading files...
SKILL.md

Skill: aix-init

Initialize or upgrade the aix framework in your project.

CRITICAL: Use Scripts, Don't Generate

IMPORTANT: This skill MUST run the actual scripts from the aix framework. Do NOT generate or improvise role/workflow content. The framework files are canonical.

Framework location: ~/tools/aix (or $AIX_FRAMEWORK if set)

Usage

/aix-init           # Initialize new project
/aix-init upgrade   # Upgrade existing project to next tier
/aix-init adopt     # Cherry-pick individual capabilities from higher tiers

For Init (new project)

Run the bootstrap script:

~/tools/aix/bootstrap.sh

For Upgrade (existing project)

Run the upgrade script:

~/tools/aix/upgrade.sh [target-tier]

Example:

~/tools/aix/upgrade.sh 1   # Upgrade to Tier 1
~/tools/aix/upgrade.sh     # Upgrade to next tier (current + 1)

For Adopt (cherry-pick capabilities)

Adopt individual capabilities from higher tiers without full upgrade:

~/tools/aix/adopt.sh --list              # List available capabilities
~/tools/aix/adopt.sh <capability-name>   # Adopt a specific capability

Example:

~/tools/aix/adopt.sh --list           # See what's available
~/tools/aix/adopt.sh agent-browser    # Adopt browser automation skill
~/tools/aix/adopt.sh commit           # Adopt commit skill

When to Use Adopt vs Upgrade

ScenarioUse
Need one specific capability nowadopt
Ready for all capabilities of next tierupgrade
Want to incrementally build upadopt multiple times
Following recommended progressionupgrade

Tracking Adopted Capabilities

Adopted capabilities are tracked in .aix/tier.yaml:

tier: 0
name: seed
adopted:
  - agent-browser
  - commit

This prevents re-adoption and informs the upgrade flow about what's already present.

Init Flow

1. Detect Existing Setup

Check if .aix/ already exists:

  • If yes, offer upgrade flow
  • If no, proceed with init

2. Analyze Project

If existing codebase:

[Analyzing existing codebase...]

Detected tech stack:
  - Runtime: Node.js 20
  - Framework: React + Vite
  - Testing: Vitest
  - Styling: Tailwind CSS

Is this correct? [Yes / Edit]

If no code:

No existing code detected. What are you building?
  [ ] Web application (frontend + backend)
  [ ] API/Backend only
  [ ] CLI tool
  [ ] Library/Package
  [ ] Other

3. Determine Starting Tier

Based on:

  • Project complexity (files, dependencies)
  • Team size (git contributors)
  • Existing CI/CD

Usually starts at Tier 0 (Seed).

4. Generate Structure

# Create .aix directory
mkdir -p .aix/{roles,workflows,skills,state}

# Copy tier files
cp -r "$AIX_FRAMEWORK/tiers/0-seed/"* .aix/

# Create tier.yaml
cat > .aix/tier.yaml << EOF
tier: 0
name: seed
initialized_at: $(date -I)
history:
  - tier: 0
    date: $(date -I)
    reason: initial setup
EOF

5. Generate Input Documents

If not present, create templates:

  • docs/product.md - from template
  • docs/tech-stack.md - from detection or template
  • docs/design.md - from template (optional)

6. Setup Claude Code

# Run Claude Code adapter (submodule)
./.aix/adapters/claude-code/generate.sh 0

# Or run from the framework repo
$AIX_FRAMEWORK/adapters/claude-code/generate.sh 0

Creates:

  • CLAUDE.md symlink
  • .claude/agents/ symlink
  • .claude/skills/ symlink

7. Summary

aix initialized at Tier 0 (Seed)

Created:
  .aix/
  ├── constitution.md
  ├── config.yaml
  ├── tier.yaml
  ├── roles/
  │   ├── analyst.md
  │   ├── coder.md
  │   └── reviewer.md
  └── workflows/
      └── standard.md

  CLAUDE.md → .aix/constitution.md
  .claude/agents/

  docs/
  ├── product.md (template - please fill in)
  ├── tech-stack.md
  └── design.md (template - optional)

Next steps:
1. Fill in docs/product.md with your vision
2. Review docs/tech-stack.md
3. Start working: describe what you want to build

Run /aix-init upgrade when ready for more structure.

Upgrade Flow

1. Check Current Tier

Read .aix/tier.yaml for current tier.

2. Analyze Project Signals

inference_signals:
  contributors_30d: [count git authors]
  parallel_branches: [count active branches]
  files_changed_weekly: [estimate from git log]
  has_ci: [check for .github/workflows or similar]
  has_tests: [check for test files]
  test_coverage: [if measurable]

3. Recommend Next Tier

Based on signals:

  • Multiple contributors → Tier 2+
  • Parallel branches → Tier 3
  • No CI but active development → Tier 2
  • Growing complexity → Tier 1

4. Present Upgrade Options

Your project is at Tier 0 (Seed).

Based on analysis:
  - 3 contributors this month
  - 2 parallel branches
  - No CI/CD yet

Recommended: Upgrade to Tier 1 (Sprout)

This will add:
  [x] tester role
  [x] docs role
  [x] quick-fix workflow
  [x] pre-commit hooks (file sizes, focused tests)
  [x] test skill
  [x] commit skill

Proceed? [Yes / Customize / Skip]

5. Apply Upgrade

# Add tier additions
cp -r "$AIX_FRAMEWORK/tiers/1-sprout/"* .aix/

# Update tier.yaml
# Update .claude/agents/
# Setup hooks if applicable

6. Summary

Upgraded to Tier 1 (Sprout)

Added:
  - .aix/roles/tester.md
  - .aix/roles/docs.md
  - .aix/workflows/quick-fix.md
  - .husky/pre-commit
  - .aix/skills/test/
  - .aix/skills/commit/

Updated:
  - .aix/tier.yaml
  - .claude/agents/

Next tier (Tier 2 - Grow) adds:
  - GitHub Actions CI
  - orchestrator and triage roles
  - feature workflow with full phases
  - audit skills

Tech Stack Detection

Node.js/JavaScript

  • Check package.json for framework (react, next, express, etc.)
  • Check for TypeScript (tsconfig.json)
  • Check test framework (jest, vitest, mocha)
  • Check styling (tailwind, styled-components, css modules)

Python

  • Check requirements.txt, pyproject.toml, setup.py
  • Check for framework (fastapi, django, flask)
  • Check test framework (pytest, unittest)

Go

  • Check go.mod
  • Check for framework (gin, echo, fiber)

Other

  • Look for common config files
  • Ask user if unclear

Error Handling

Already Initialized

aix is already initialized at Tier [N].
Run /aix-init upgrade to upgrade, or delete .aix/ to reinitialize.

Unsupported Project Type

Unable to detect project type. Please specify:
  [ ] Web application
  [ ] API
  [ ] CLI
  [ ] Library
  [ ] Other: ___

Upgrade Not Available

You're at Tier 3 (Scale) - the highest tier.
No further upgrades available.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 2/19/2026

Well-structured skill for initializing/upgrading the aix framework with comprehensive flows, clear commands, and error handling. Provides step-by-step guidance for init, upgrade, and adopt operations with good use of examples and tables. Tags enhance discoverability. Slight扣分 for framework-specific nature but still highly actionable within its domain.

95
90
70
85
90

Metadata

Licenseunknown
Version-
Updated2/22/2026
Publisherryangaraygay

Tags

apici-cdgithubgithub-actionsllmtesting