Onboard existing repositories into the Cursor Agent Factory ecosystem
Onboard existing repositories into the Antigravity Agent Factory ecosystem
Integrate Antigravity Agent Factory into existing repositories non-destructively, preserving existing artifacts while adding missing components.
Existing repositories have value. Our job is to enhance, not replace.
This skill enables seamless integration of the factory's agent system into repositories that already have code, configurations, and potentially some Cursor artifacts.
Every onboarded project receives layered capabilities that enable progressive autonomy:
Layer 0: Foundation
grounding-verification skill: Two-pass verification for AI outputsLayer 1: Development Autonomy
ci-monitor skill: Continuous CI/CD monitoringpipeline-error-fix skill: Automatic error detection and fixingdebug-conductor agent: Orchestrates debugging workflowsLayer 2: Knowledge Independence
knowledge-extender agent: Add new knowledge independentlyknowledge-evolution agent: Track and manage knowledgeLayer 3: PM Integration (Opt-In)
Ask user for the repository path:
"Please provide the path to the repository you want to onboard.
For example: C:\Projects\my-existing-app"
Validate the path exists and is a directory.
Run the repository analyzer to detect existing artifacts:
python cli/factory_cli.py --analyze <repo_path>
MCP Tools:
search_repositories to verify remote existence.Present the analysis results to user:
Based on tech stack detection, suggest a blueprint:
"I detected the following:
- Languages: C#, TypeScript
- Frameworks: ASP.NET Core, React
- Suggested Blueprint: csharp-dotnet
Would you like to use this blueprint, or choose a different one?"
Available blueprints:
python-fastapi - Python REST API developmenttypescript-react - TypeScript web applicationsjava-spring - Java enterprise applicationskotlin-spring - Kotlin Spring applicationscsharp-dotnet - C#/.NET applicationssap-abap - SAP ABAP developmentsap-cpi-pi - SAP CPI/PI integrationAfter confirming the blueprint, offer PM system configuration:
"Would you like to set up project management for this repository?
This will add:
- PM agents (Product Owner, Sprint Master, Task Manager, Reporting)
- Integration with your issue tracker (GitHub, Jira, Azure DevOps, Linear)
- Sprint/Kanban workflow automation
- Metrics and reporting capabilities
Options:
1. [Yes] - Configure full project management
2. [Minimal] - Just issue tracking, no ceremonies
3. [No] - Skip for now (can add later with pm-configuration skill)"
If user selects "Yes" or "Minimal":
pm-configuration skillIf user selects "No":
pm-configuration skillAfter confirming the blueprint (and optionally PM), offer automation tooling:
"Would you like to set up automation tooling for this repository?
This can include:
- CI/CD pipelines (GitHub Actions)
- README structure validation and test catalog generation
- Pre-commit hooks with auto-sync
- Safe commit wrapper
- Secret scanning
Options:
1. [Essential] - CI pipeline, doc sync, .gitignore (recommended)
2. [Standard] - Essential + git hooks, safe commit, CD pipeline
3. [Full] - Standard + secret scanner, changelog generator
4. [Custom] - Pick individual tools
5. [None] - Skip for now (can add later via Factory updates)"
If user selects 1-3:
tooling_tier accordingly in the generation configIf user selects 4 (Custom):
tooling_tier to custom with selectionsIf user selects 5:
tooling_tier to noneBefore making any changes, show what will be modified:
python cli/factory_cli.py --onboard <repo_path> --blueprint <blueprint_id> --dry-run
Present the preview:
For each conflict, ask user for resolution:
| Conflict Type | Options | ||| | Existing agent with same name | Keep existing / Replace / Rename new | | Existing .cursorrules | Merge / Replace / Keep existing | | Existing knowledge file | Merge / Replace / Keep existing | | Existing MCP config | Merge servers / Replace / Keep existing |
Default behavior: Preserve existing (ask for each conflict)
With user confirmation, execute the onboarding:
python cli/factory_cli.py --onboard <repo_path> --blueprint <blueprint_id>
The process will:
After completion, provide:
"Onboarding complete!
Summary:
- Scenario: PARTIAL
- Files created: 8
- Files merged: 2
- Skipped (preserved): 3
- Tooling tier: {TOOLING_TIER}
- PM configuration: Enabled (if PM was selected in Step 3.5)
A backup was created: .cursor-factory-backup/20260129_143022/
Next steps:
1. Review the merged .cursorrules file
2. Test the new agents by mentioning them
3. Check the {directories.knowledge}/ folder for new reference files
4. Review {directories.workflows}/ for available workflow templates
5. Run `python {directories.scripts}/git/install_hooks.py` to activate pre-commit hooks
6. Run `python {directories.scripts}/validation/validate_readme_structure.py --check` to verify README
7. Configure PM backend credentials (if PM was enabled)
If anything looks wrong, you can rollback:
python cli/factory_cli.py --rollback <repo_path>
"
| Condition | Action | |--|--| | Path not found | Ask user to verify path | | No write permission | Suggest running with admin rights | | Unknown tech stack | Ask user to specify blueprint | | Backup fails | Abort and report error | | Conflict with no resolution | Skip artifact, report to user |
| Skill | Integration Point |
|-|-|
| requirements-gathering | Use if user wants to customize before onboarding |
| stack-configuration | Use if detected stack needs adjustment |
| agent-generation | Used for generating missing agents |
| skill-generation | Used for generating missing skills |
| pm-configuration | Invoked in Step 3.5 if user wants PM system setup |
| team-workshop-onboarding | Alternative for team onboarding with collaborative workshops |
If a team (2+ people) is onboarding together, suggest the Team Workshop Onboarding:
"I notice you mentioned a team. Would you like to:
A) Individual Onboarding - I'll analyze and enhance your repo now
B) Team Workshop Series - Collaborative 5-workshop journey with games
and discussions that builds shared vision, ethics, and custom agents
The workshop series takes more time but creates deeper team alignment
and more customized results. It's grounded in Axiom 0: Love, Truth, and Beauty."
If they choose team workshops, hand off to team-workshop-onboarding skill.
# Analyze repository (no changes)
python cli/factory_cli.py --analyze C:\Projects\my-repo
# Preview onboarding (dry run)
python cli/factory_cli.py --onboard C:\Projects\my-repo --dry-run
# Onboard with auto-detected blueprint
python cli/factory_cli.py --onboard C:\Projects\my-repo
# Onboard with specific blueprint
python cli/factory_cli.py --onboard C:\Projects\my-repo --blueprint csharp-dotnet
# Rollback last onboarding
python cli/factory_cli.py --rollback C:\Projects\my-repo
User: "I have an existing C# project at C:\Projects\PaymentService that I want to enhance with Cursor agents"
Agent: "I'll analyze your repository to understand what's already configured.
Running analysis...
Analysis Results:
Would you like me to:
What would you prefer?"
User: "Proceed with onboarding"
Agent: "Great! Before I proceed, would you like to set up project management for this repository?
This will add:
Options:
User: "Yes, let's set it up"
Agent: Invokes pm-configuration skill, then proceeds with onboarding...
Agent: "Onboarding complete!
Summary:
Next steps:
Generated by Antigravity Agent Factory Skill: onboarding-flow v1.0.0
This skill should be used when strict adherence to the defined process is required.
npx skills add gitwalter/managing-onboarding-flows下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer