a↗agentbay.Obtener AgentBay
Mi cuenta ▾
Menú
← Volver a la guía
RESULTADO DE LA GUÍA

Ejecuta este proyecto

Descargar original ↓

CRM-142: importar contactos desde CSV

El ticket de Jira y los contactos son ficticios. Este CRM local usa almacenamiento del navegador; no se carga nada a Jira ni a una cuenta de CRM.

1. Abre tu proyecto

Usa tu proyecto o descomprime el inicial y abre su carpeta crm en el terminal. El ejemplo requiere Node.js 24,, Git, Python 3.11+ para protecciones y Codex CLI con sesión iniciada.

Para ver la aplicación inicial, ejecuta node --test tests/contacts.test.js (cinco pruebas superadas), después npm start y abre http://127.0.0.1:8830. La ejecución completa de npm test falla inicialmente porque aún no existe src/import.js. Mantén esa batería de aceptación sin cambios.

2. Obtén AgentBay

¿Ya tienes AgentBay? Omite este paso. Si no, instálalo una vez para todos tus proyectos:

npx --yes skills@1.7.4 add https://github.com/ravisingh11/agentbay-ultimate-list/tree/bd8399db8fd370a55d9aa315661a653353a7799d/skills/agentbay-skill-installer --skill agentbay-skill-installer --agent codex --yes --global

Inicia un chat nuevo de Codex en tu proyecto y confirma que AgentBay (agentbay-skill-installer) aparece en Skills. Reutiliza la instalación existente del proyecto en vez de añadir otra copia. No necesitas un checkout completo de AgentBay ni cuenta de Jira. Se requiere acceso público a la red para obtener habilidades y archivos del toolkit.

3. Prepara tu ticket

Ejecuta codex en la carpeta del proyecto. Pega tu ticket (tickets/CRM-142.md en el ejemplo) con este prompt:

Use AgentBay to prepare this project for my ticket.
Inspect the project. Find and install only the missing skills this ticket needs. Read their instructions and confirm your agent can load them.
Set up local guardrails with official AI Software Toolkit v2.3.3: https://github.com/ravisingh11/ai-software-toolkit/tree/248d8f02e774e4f75af6ea2de49b466688dfae54. Inspect and use setup-guardrails.py if this project includes it; otherwise follow the toolkit's setup instructions. Keep GitHub Actions off.
Use this project's test commands and run the baseline. Report AgentBay loading, selected skills, missing tools or access, guardrail configuration and test results. Separate expected missing-feature failures from setup problems.
Stop before design or implementation. Do not change application files or tests, commit, deploy or grant account access.

Espera las habilidades elegidas, acceso a herramientas, configuración de protecciones y resultados iniciales. Resuelve lo que falte y empieza la lluvia de ideas. La preparación no implementa el ticket.

Continuar la guía

La ejecución de programación registrada eligió brainstorming y writing-plans de obra/superpowers. El prompt de configuración anterior es el nuevo punto de entrada centrado en preparación; no es un comprobante nuevo de ejecución. El artículo conserva los prompts CLI, revisiones y resultados reales en Detalles de ejecución. Solo se probó la ejecución de tareas con Codex CLI.

Comprobar el resultado

Ejecuta npm test: el proyecto terminado supera 17 casos unitarios. En navegador nuevo selecciona samples/customer-contacts.csv, elige Review CSV y espera Ready 3, Invalid 1, Duplicate 2. Confirma y espera Added 3, skipped 3; recarga y comprueba que quedan cinco contactos. Cancelar no debe guardar nada. Fail next save prueba recuperación; el reintento debería tener éxito una vez. Importar de nuevo el archivo no debe añadir duplicados. Búsqueda y Add contact deben seguir funcionando.

El estado del navegador usa solo agentbay-crm-142-contacts en este origen local. Un perfil/contexto nuevo repite el estado inicial. El ejemplo usa almacenamiento del navegador, no base de datos de servidor ni transacción entre pestañas. La ejecución de escritorio/Claude no forma parte de este comprobante CLI.

El proyecto final incluye diseño y plan reales en docs/. El artículo muestra sus decisiones con capturas y mantiene los documentos completos dentro de la página.

06 Protecciones

Requiere Python 3.11+, además de Node.js 24 y Git. Antes de implementar el ticket, instala el toolkit local fijado y exige pruebas unitarias:

python3 setup-guardrails.py --yes
git init
git add .
git commit -m "Record CRM starter with enforced unit tests"
PROOF_UNIT_TEST_COMMAND="npm test" python3 .toolkit-cache/ai-toolkit.pyz check --target . --base-ref HEAD --json

El proyecto inicial está bloqueado porque no existe src/import.js. Implementa la función revisada, actualiza este README con el resultado, revisa y haz commit, y después comprueba ese commit:

git add index.html style.css src/app.js src/import.js docs README.md
git commit -m "Implement CRM-142 and document the import flow"
PROOF_UNIT_TEST_COMMAND="npm test" python3 .toolkit-cache/ai-toolkit.pyz check --target . --base-ref STARTER_COMMIT --json

Sustituye STARTER_COMMIT por el SHA completo mostrado por git rev-parse HEAD en el punto de control inicial. Usa tu identidad de Git. Las pruebas unitarias son obligatorias; otros controles son orientativos. Lee cada hallazgo. ALLOW informa de la decisión de política elegida; no hace commit, merge ni despliegue. Esta configuración no activa GitHub Actions ni variables del repositorio.

Archivo original y detalles de la fuente

README.md · SHA-256 591dc1ada59cf750d1b4141219b0245fcf3870352e57d976cf17febb4e60cd77

# CRM-142: import contacts from CSV

The sample Jira ticket and contacts are fictional. This local CRM uses browser storage; nothing is uploaded to Jira or a CRM account.

## 1. Open your project

Use your own project, or unzip the starter and open its crm folder in your terminal. The CRM example needs Node.js 24, Git, Python 3.11+ for guardrails and a signed-in Codex CLI.

To see the starting app, run `node --test tests/contacts.test.js` (five passing tests), then `npm start` and open http://127.0.0.1:8830. Full `npm test` initially fails because the new src/import.js does not exist yet. Keep that acceptance suite unchanged.

## 2. Get AgentBay

Already have AgentBay? Skip this step. Otherwise install it once for all your projects:

```sh
npx --yes skills@1.7.4 add https://github.com/ravisingh11/agentbay-ultimate-list/tree/bd8399db8fd370a55d9aa315661a653353a7799d/skills/agentbay-skill-installer --skill agentbay-skill-installer --agent codex --yes --global
```

Start a fresh Codex chat in your project and confirm AgentBay (agentbay-skill-installer) appears in Skills. Reuse an existing project installation instead of adding a second copy. No full AgentBay checkout or Jira account is needed. Public network access is required to fetch skills and toolkit files.

## 3. Prepare your ticket

Run `codex` in the project folder. Paste your ticket (tickets/CRM-142.md for the sample) with this prompt:

```text
Use AgentBay to prepare this project for my ticket.
Inspect the project. Find and install only the missing skills this ticket needs. Read their instructions and confirm your agent can load them.
Set up local guardrails with official AI Software Toolkit v2.3.3: https://github.com/ravisingh11/ai-software-toolkit/tree/248d8f02e774e4f75af6ea2de49b466688dfae54. Inspect and use setup-guardrails.py if this project includes it; otherwise follow the toolkit's setup instructions. Keep GitHub Actions off.
Use this project's test commands and run the baseline. Report AgentBay loading, selected skills, missing tools or access, guardrail configuration and test results. Separate expected missing-feature failures from setup problems.
Stop before design or implementation. Do not change application files or tests, commit, deploy or grant account access.
```

Expect the selected skills, tool access, guardrail configuration and baseline test results. Resolve missing setup items, then start brainstorming. Preparation does not implement the ticket.

## Continue the walkthrough

The recorded coding run selected brainstorming and writing-plans from obra/superpowers. The setup prompt above is the new readiness-first entry point; it is not a new execution receipt. The article retains the actual CLI prompts, revisions and results under Run details. Only Codex CLI task execution was tested.

## Check the result

Run `npm test`: the finished project passes 17 unit cases. In a fresh browser, select samples/customer-contacts.csv, choose Review CSV and expect Ready 3, Invalid 1, Duplicate 2. Confirm and expect Added 3, skipped 3; reload and verify five contacts remain. Cancel must save nothing. Fail next save exercises recovery; retry should succeed once. Importing the same file again must not add duplicates. Existing search and Add contact must still work.

Browser state uses only agentbay-crm-142-contacts on this local origin. A fresh browser profile/context repeats the initial state. This fixture uses browser storage, not a server database or multi-tab transaction. Desktop/Claude execution is not part of this CLI receipt.

The finished project includes the actual design and plan under docs/. The article shows their decisions with screenshots and keeps the full documents available inside the page.

## 06 Guardrails

Requires Python 3.11+ as well as Node.js 24 and Git. Before implementing the ticket, install the pinned local toolkit and enforce unit tests:

```sh
python3 setup-guardrails.py --yes
git init
git add .
git commit -m "Record CRM starter with enforced unit tests"
PROOF_UNIT_TEST_COMMAND="npm test" python3 .toolkit-cache/ai-toolkit.pyz check --target . --base-ref HEAD --json
```

The starter is blocked because src/import.js does not exist. Implement the reviewed feature, update this README to describe the result, review and commit the changes, then check that commit:

```sh
git add index.html style.css src/app.js src/import.js docs README.md
git commit -m "Implement CRM-142 and document the import flow"
PROOF_UNIT_TEST_COMMAND="npm test" python3 .toolkit-cache/ai-toolkit.pyz check --target . --base-ref STARTER_COMMIT --json
```

Replace STARTER_COMMIT with the full SHA printed by `git rev-parse HEAD` at the starter checkpoint. Use your own Git identity. Unit tests are enforced; other controls stay advisory. Read every advisory finding. ALLOW reports the selected policy decision; it does not commit, merge or deploy. No GitHub Actions or repository variables are enabled by this setup.