Skip to content

Latest commit

Β 

History

History
85 lines (64 loc) Β· 2.51 KB

File metadata and controls

85 lines (64 loc) Β· 2.51 KB

πŸš€ SuperAI GitHub - Correct Usage Instructions

⚠️ IMPORTANT: Don't cd into the submodule!

❌ WRONG WAY (What you were doing):

cd your-project
git submodule add https://github.com/enact-on/super-ai-github.git .super-ai-github
cd .super-ai-github           # ❌ WRONG! Don't cd into submodule
./scripts/install.sh          # Now it detects the wrong directory!

βœ… CORRECT WAY (Run from your project root):

cd your-project
git submodule add https://github.com/enact-on/super-ai-github.git .super-ai-github

# Stay in your project root!
./scripts/install.sh  # βœ… CORRECT! This will auto-detect your tech stack

🎯 How It Works Now

The updated install script is smart - it automatically detects when you're inside the submodule and will check your parent project's tech stack instead!

πŸ“‹ Step-by-Step for Your Demo Project

# 1. Go to your demo project
cd C:/Users/afsai/Desktop/Files/pilot/nextjs/demo

# 2. Add SuperAI as submodule
git submodule add https://github.com/enact-on/super-ai-github.git .super-ai-github

# 3. Install from your project root (NOT from inside the submodule!)
./scripts/install.sh

# You should now see:
# [INFO] This will install SuperAI agents and skills in .claude-agents/
# [INFO] Your existing .claude/ configuration will NOT be touched.
# [INFO] Detecting technology stack...
# [SUCCESS] Detected technologies:
#   - Next.js
#   - Laravel
#   - React
#   - TypeScript
#   - Node.js
#   - PHP
#   - Vite

πŸ” Tech Stack Detection

The script now checks your parent project for:

package.json          β†’ React, Next.js, Vue, Node.js, TypeScript
composer.json         β†’ Laravel, PHP
requirements.txt      β†’ Python, Django, FastAPI
go.mod               β†’ Go
Cargo.toml           β†’ Rust
pom.xml              β†’ Java/Maven
build.gradle         β†’ Java/Gradle

🎯 Quick Test

Try this on your demo project:

cd C:/Users/afsai/Desktop/Files/pilot/nextjs/demo
git submodule add https://github.com/enact-on/super-ai-github.git .super-ai-github
./scripts/install.sh

# You should see both Next.js and Laravel detected!

πŸ’‘ Pro Tips

  1. Always run from project root - never cd into the submodule
  2. The script is smart now - it auto-detects parent project
  3. Tech detection works - it finds package.json, composer.json, etc.
  4. Selective installation - only relevant agents/skills are installed

Try it now on your demo project and it should work perfectly! πŸš€