agentleFS
eliecer2000eliecer2000/kiro-bootstrap/skills/orbit-bootstrap/SKILL.md

orbit-bootstrap

Skill9 starsChanged 8 months agoMITView on GitHub

Orbit bootstrap process, artifact resync, project profile resolution and workspace initialization. Use when bootstrapping a new project, resyncing artifacts or resolving project profiles.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No improvisar bootstrap manual ni saltarse la copia de artefactos.

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Orbit Bootstrap

Skill para el proceso de bootstrap interactivo de Orbit, resincronización de artefactos, resolución de perfiles de proyecto, gestión de conflictos, políticas de sesión y flujo completo de inicialización de workspaces.

Principios fundamentales

  • Orbit es el agente principal de bootstrap y resincronización del framework.
  • El bootstrap ejecuta el pipeline real (install.sh) antes de crear código o scaffolding.
  • El perfil de proyecto se resuelve internamente a partir de preguntas de negocio y stack, nunca pidiendo el ID crudo al usuario.
  • Ningún artefacto se copia manualmente. Todo pasa por el pipeline del framework.
  • El scaffolding de la aplicación comienza solo después de que el bootstrap haya terminado y los artefactos del perfil estén presentes.

Flujo de bootstrap

1. Detectar contexto (HOME vs proyecto existente)
2. Preguntar si desea preparar el entorno
3. Si acepta → Resolver perfil de proyecto (wizard)
4. Ejecutar pipeline: install.sh --resync-project
   4a. Session Gates
   4b. Detect Or Select Profile
   4c. Validate Environment (+ auto-install de herramientas de sistema)
   4d. Load Orbit Artifacts
   4e. Install Project Tooling (linters, formatters, test runners)
   4f. Write Project State
5. Verificar artefactos generados
6. Actualizar .orbit-project.json
7. Listo para scaffolding

Instalación de herramientas

El pipeline distingue dos niveles de herramientas:

Herramientas de sistema (paso 4c - Validate Environment)

Validadas y auto-instaladas si faltan (controlado por ORBIT_AUTO_INSTALL_TOOLS, default yes):

HerramientaMétodo de instalación
gitbrew / apt / xcode-select
node / npmbrew / apt / nvm
python3brew / apt
awsbrew / awscli installer
terraformbrew / apt
pnpmnpm / corepack
yarncorepack / npm

Cada perfil define sus validaciones requeridas. Todos los perfiles validan git como dependencia base.

Herramientas de proyecto (paso 4e - Install Project Tooling)

Instaladas automáticamente como devDependencies según el campo tooling del perfil:

RuntimePackage ManagerHerramientas típicas
TypeScript/JavaScriptnpm / pnpm / yarn / buneslint, prettier, vitest, typescript
Pythonuv / poetry / pip3ruff, black, pytest, mypy
none (Terraform)—Solo herramientas de sistema

El package manager se detecta automáticamente por lockfile (pnpm-lock.yaml, yarn.lock, bun.lockb). Si no hay lockfile, usa npm por defecto.

Si no existe package.json (Node.js) o pyproject.toml (Python), se inicializa automáticamente antes de instalar.

Comando de bootstrap

ORBIT_BOOTSTRAP_DECISION=yes \
ORBIT_HOME_DECISION=no \
ORBIT_PROJECT_PROFILE_ID=<profile-id> \
ORBIT_REMOTE_SKILL_DECISION=no \
~/.kiro/orbit/install.sh --resync-project "<ruta-objetivo>"

Variables de entorno del pipeline

VariableValoresDescripción
ORBIT_BOOTSTRAP_DECISIONyes / noSi el usuario acepta preparar el entorno
ORBIT_HOME_DECISIONyes / noSi se crea carpeta de proyecto desde HOME
ORBIT_PROJECT_PROFILE_IDID del perfilPerfil resuelto por el wizard
ORBIT_REMOTE_SKILL_DECISIONyes / noSi se instalan skills remotas recomendadas

Resolución de perfil de proyecto

El perfil se resuelve con un wizard basado en 4 dimensiones:

  1. Workload: ¿Qué tipo de aplicación? (API backend, full-stack, infraestructura, shared library)
  2. Runtime: ¿Qué lenguaje? (TypeScript, JavaScript, Python)
  3. Provisioner: ¿Cómo se provisiona la infra? (CDK, Terraform, Amplify)
  4. Framework: ¿Qué framework frontend? (React, Vue, Nuxt — solo para full-stack)

Perfiles disponibles

Perfil IDWorkloadRuntimeProvisioner
aws-backend-api-typescriptAPI BackendTypeScriptCDK
aws-backend-api-pythonAPI BackendPythonCDK
aws-backend-api-javascriptAPI BackendJavaScriptCDK
aws-backend-lambda-typescriptLambdaTypeScriptCDK
aws-backend-lambda-pythonLambdaPythonCDK
aws-backend-lambda-javascriptLambdaJavaScriptCDK
aws-infra-cdk-typescriptInfraestructuraTypeScriptCDK
aws-infra-terraformInfraestructuraHCLTerraform
aws-amplify-reactFull-stackTypeScriptAmplify
aws-amplify-vueFull-stackTypeScriptAmplify
aws-amplify-nuxtFull-stackTypeScriptAmplify
aws-shared-lib-typescriptShared LibraryTypeScript-
aws-shared-lib-pythonShared LibraryPython-
aws-shared-lib-javascriptShared LibraryJavaScript-

Verificación post-bootstrap

Después del bootstrap, verificar que existen:

.kiro/
├── .orbit-project.json     # Metadata del proyecto
├── agents/                 # Agentes del perfil
├── steering/               # Steering files del perfil
├── skills/                 # Skills del perfil
└── hooks/                  # Hooks del perfil

Si alguno falta, el bootstrap no se completó correctamente. Ejecutar resync.

Reglas de sesión

  1. Si el usuario rechaza el bootstrap, no volver a preguntar en la sesión actual.
  2. Si el contexto es HOME, preguntar una sola vez si desea crear carpeta de proyecto.
  3. Si acepta crear carpeta, prepararla y continuar el flujo desde esa ruta.
  4. Si el perfil es ambiguo, resolver con el wizard (nunca pedir el ID crudo).
  5. Ninguna skill remota se instala sin confirmación explícita del usuario.
  6. Al terminar, actualizar .orbit-project.json.
  7. No improvisar bootstrap manual ni saltarse la copia de artefactos.
  8. El scaffolding comienza solo después del bootstrap exitoso.
  9. El bootstrap resuelve un perfil de proyecto de Orbit, no un perfil de AWS CLI.

Resincronización

Usar resync cuando:

  • Se actualizó el framework y se necesitan nuevos artefactos.
  • Se cambió el perfil del proyecto.
  • Se detectan artefactos faltantes o desactualizados.

El comando es el mismo que el bootstrap, ejecutado sobre un proyecto existente.

Conflictos de artefactos

  • Si un artefacto local fue modificado por el usuario y el framework trae una versión nueva, el pipeline debe detectar el conflicto.
  • Estrategia: preservar cambios del usuario, aplicar actualizaciones del framework donde no hay conflicto.
  • Artefactos que nunca se sobreescriben: código de aplicación del usuario.
  • Artefactos que siempre se actualizan: steering, skills, hooks, agents del perfil.

Lo que Orbit NO debe hacer durante bootstrap

  • ❌ Pedir perfil de AWS CLI, credenciales, access keys o account ID.
  • ❌ Ejecutar aws sts get-caller-identity (solo si el usuario pide desplegar).
  • ❌ Pedir el project-profile-id crudo al usuario.
  • ❌ Crear código o scaffolding antes de que el bootstrap termine.
  • ❌ Instalar skills remotas sin confirmación.
  • ❌ Improvisar copiando archivos manualmente en lugar de usar el pipeline.

Checklist de bootstrap

  • Contexto detectado (HOME vs proyecto).
  • Usuario confirmó preparar entorno.
  • Perfil resuelto con wizard (workload, runtime, provisioner, framework).
  • Pipeline ejecutado con install.sh --resync-project.
  • Artefactos verificados (.orbit-project.json, agents, steering, skills, hooks).
  • .orbit-project.json actualizado.
  • Listo para scaffolding.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.