us-refinement is a portable AI assistant tailored to interactively refine user stories into structured specifications before moving to technical design or implementation.
- INVEST-driven Refinement: Assesses raw user stories (or issues) against INVEST principles (Independent, Negotiable, Valuable, Estimable, Small, Testable).
- Behavioral Acceptance Criteria: Generates explicit Given/When/Then scenarios covering happy paths and edge cases.
- Invisible AI Zone: Formats human-facing specifications in the local language (e.g., Spanish) while injecting a hidden HTML comment block (
<!-- ... -->) in English at the end. This keeps the project board clean for humans while giving token-efficient, unambiguous prompts to AI tools reading the issues via APIs. - Multi-Agent Portability: Optimized to be easily ported and run across multiple AI agents — Claude Code (including multi-account setups), Gemini / Antigravity CLI, OpenCode, GitHub Copilot, Cursor, and Kiro.
- Environment Auto-Detection: Dynamically checks for tools like
engram,ghcli, or SDD systems to adjust its storage and execution strategies.
Choose one of the following installation methods:
Run the remote script directly from GitHub without cloning the repository. This will download the latest stable release ZIP and link it to all detected agents.
- Windows (PowerShell):
irm https://raw.githubusercontent.com/hjagar/us-refinement/main/install.ps1 | iex
- macOS / Linux (Bash):
curl -sSL https://raw.githubusercontent.com/hjagar/us-refinement/main/install.sh | bash
If you want to contribute or run in local/development mode:
- Clone this repository:
git clone https://github.com/hjagar/us-refinement.git cd us-refinement - Run the installer script locally — this copies
SKILL.md,scripts/, andtests/automatically into every supported agent's skill directory (Claude Code, Gemini, OpenCode, Copilot, Cursor, Kiro, and any detected.claude-*multi-account setups), no manual per-agent configuration needed:- Windows (PowerShell):
.\install.ps1 -Local - macOS / Linux (Bash):
./install.sh --local
- Windows (PowerShell):
To update the skill to the latest version available on GitHub:
- Windows (PowerShell):
& "$HOME\.hjagar\skills\us-refinement\update.ps1"
- macOS / Linux (Bash):
"$HOME/.hjagar/skills/us-refinement/update.sh"
Special thanks to Alan Buscaglia (@Gentleman-Programming), creator of Engram, for providing the persistent memory backend that makes hybrid and hybrid-delayed storage possible.
us-refinement es un asistente portátil diseñado para refinar historias de usuario de forma interactiva y estructurada antes de pasar al diseño técnico o al desarrollo.
- Refinamiento basado en INVEST: Evalúa la historia cruda (o issue) bajo los criterios INVEST (Independiente, Negociable, Valiosa, Estimable, Pequeña, Testable).
- Criterios de Aceptación Claros: Genera escenarios en formato Given/When/Then cubriendo caminos felices y casos de borde.
- Zona Oculta para IA (Invisible AI Zone): Escribe la especificación para humanos en el idioma local (ej. Español) e inyecta al final un bloque oculto de comentarios HTML (
<!-- ... -->) en inglés con los criterios traducidos y metadatos optimizados. Esto mantiene la interfaz visual limpia para el equipo y le da instrucciones precisas y token-eficientes a cualquier IA que lea el issue mediante API. - Portabilidad Multi-Agente: Diseñado para funcionar en múltiples herramientas — Claude Code (incluyendo configuraciones multi-cuenta), Gemini / Antigravity CLI, OpenCode, GitHub Copilot, Cursor y Kiro.
- Autodetección de Entorno: Reconoce dinámicamente si herramientas como
engram,ghcli o flujos SDD están disponibles para adaptar su flujo.
Elegí uno de los siguientes métodos de instalación:
Ejecutá el instalador directamente desde GitHub sin necesidad de clonar el repositorio. Esto descargará la última versión estable (ZIP) y la enlazará con todos los agentes detectados.
- Windows (PowerShell):
irm https://raw.githubusercontent.com/hjagar/us-refinement/main/install.ps1 | iex
- macOS / Linux (Bash):
curl -sSL https://raw.githubusercontent.com/hjagar/us-refinement/main/install.sh | bash
Si querés colaborar con el proyecto o correr en modo local/desarrollo:
- Cloná este repositorio:
git clone https://github.com/hjagar/us-refinement.git cd us-refinement - Ejecutá el instalador de forma local — esto copia
SKILL.md,scripts/ytests/automáticamente a la carpeta de cada agente soportado (Claude Code, Gemini, OpenCode, Copilot, Cursor, Kiro, y cualquier configuración multi-cuenta.claude-*detectada), sin necesidad de configuración manual por agente:- Windows (PowerShell):
.\install.ps1 -Local - macOS / Linux (Bash):
./install.sh --local
- Windows (PowerShell):
Para actualizar el skill a la última versión disponible en GitHub:
- Windows (PowerShell):
& "$HOME\.hjagar\skills\us-refinement\update.ps1"
- macOS / Linux (Bash):
"$HOME/.hjagar/skills/us-refinement/update.sh"
Un agradecimiento especial a Alan Buscaglia (@Gentleman-Programming), creador de Engram, por proveer el motor de memoria persistente que hace posible el almacenamiento híbrido y diferido (hybrid-delayed).