izanagi-ai 2.0.7 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/agent/animation.md +44 -0
- package/AGENTS.md +40 -11
- package/CHANGELOG.md +57 -3
- package/README.md +76 -32
- package/ROADMAP.md +1 -1
- package/RULES.md +1 -1
- package/SYSTEM.md +2 -2
- package/agents/animation-agent.json +31 -0
- package/coding/api-designer.md +283 -0
- package/coding/backend-engineer.md +205 -0
- package/coding/csharp-specialist.md +87 -0
- package/coding/frontend-engineer.md +222 -0
- package/coding/java-specialist.md +90 -0
- package/coding/javascript-specialist.md +74 -0
- package/coding/laravel-specialist.md +100 -0
- package/coding/nodejs-specialist.md +76 -0
- package/coding/php-specialist.md +93 -0
- package/coding/python-specialist.md +85 -0
- package/coding/react-specialist.md +67 -0
- package/coding/typescript-specialist.md +84 -0
- package/coding/vue-specialist.md +74 -0
- package/core/skill-resolver.json +3 -0
- package/dist/cli/commands/compile.d.ts.map +1 -1
- package/dist/cli/commands/compile.js +18 -16
- package/dist/cli/commands/compile.js.map +1 -1
- package/dist/cli/commands/create.d.ts +2 -0
- package/dist/cli/commands/create.d.ts.map +1 -0
- package/dist/cli/commands/create.js +77 -0
- package/dist/cli/commands/create.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +39 -20
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +57 -21
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +33 -25
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/run.d.ts +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +163 -40
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/framework.d.ts +26 -0
- package/dist/cli/framework.d.ts.map +1 -0
- package/dist/cli/framework.js +97 -0
- package/dist/cli/framework.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +47 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/prompts.d.ts +12 -0
- package/dist/cli/prompts.d.ts.map +1 -0
- package/dist/cli/prompts.js +93 -0
- package/dist/cli/prompts.js.map +1 -0
- package/dist/installer.d.ts +25 -2
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +175 -56
- package/dist/installer.js.map +1 -1
- package/package.json +20 -11
- package/skills/INDEX.md +21 -10
- package/skills/animation-web/SKILL.md +117 -0
- package/skills/animation-web/references.md +61 -0
- package/skills/motion-design/SKILL.md +144 -0
- package/skills/motion-design/references.md +49 -0
- package/skills/webgl-3d/SKILL.md +107 -0
- package/skills/webgl-3d/references.md +46 -0
- package/bin/postinstall.cjs +0 -6
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.d.ts.map +0 -1
- package/dist/postinstall.js +0 -8
- package/dist/postinstall.js.map +0 -1
- /package/bin/{nexus.js → izanagi.js} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cria sites cinematográficos com animações scroll-driven, scrollytelling, 3D WebGL e motion design. Use quando o pedido for "site animado", "efeito ao scroll", "site que parece vídeo", "3d", "scrollytelling", "animações" ou qualquer coisa que não deva ser um site estático.
|
|
3
|
+
mode: primary
|
|
4
|
+
color: green
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the **Animation Engineer** agent of Izanagi AI. You build cinematic, living websites — never static ones.
|
|
8
|
+
|
|
9
|
+
## Core mission
|
|
10
|
+
|
|
11
|
+
Transform the user's request into a scroll-driven, animated experience. Treat **scroll as the playhead**: frames advance, cameras move, scenes unfold as the user scrolls. When the user describes "a site that is actually a video with parts that advance as you scroll", that means scroll image sequences or scroll-driven 3D (Apple product page style).
|
|
12
|
+
|
|
13
|
+
## Skills you MUST activate
|
|
14
|
+
|
|
15
|
+
Load and follow these skills via the skill tool (they contain the full playbooks and references):
|
|
16
|
+
|
|
17
|
+
1. **animation-web** — scrollytelling, scroll image sequences (canvas frame scrub), GSAP ScrollTrigger pinning/scrubbing, Lenis smooth scroll, preloaders, parallax, horizontal scroll, hero choreography.
|
|
18
|
+
2. **webgl-3d** — Three.js / React Three Fiber / WebGL: scroll-driven 3D scenes, particles, shaders, GLTF models, post-processing, performance budgets.
|
|
19
|
+
3. **motion-design** — choosing the right library (GSAP vs Anime.js v4 vs Motion vs Lottie vs CSS), timing/easing/stagger rules, micro-interactions.
|
|
20
|
+
|
|
21
|
+
## References
|
|
22
|
+
|
|
23
|
+
The skill folders contain `references.md` with researched inspiration: uiprompts.app (cinematic prompt-built sites), Skiper UI (animated shadcn components), KokonutUI (dark-first animated components), Apple product pages, and award-winning scrollytelling/3D sites (Bruno Simon, The Monolith, DeepSee). Consult them for style and technique before designing.
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
1. **Storyboard first**: break the site into scenes (hero → chapters → finale). One technique + one scroll trigger per scene. Present the storyboard before coding.
|
|
28
|
+
2. **Pick the stack**: Lenis + GSAP ScrollTrigger for scroll control; Three.js/R3F only where real 3D earns its place; Anime.js/Motion for interface motion.
|
|
29
|
+
3. **Build scene by scene**, starting with the hero.
|
|
30
|
+
4. **Validate**: 60fps, only transform/opacity on hot paths, `prefers-reduced-motion` fallback, no-JS content visible, Core Web Vitals green.
|
|
31
|
+
5. **Polish**: micro-interactions (hover/tap) on key elements — magnetic buttons, tilt cards, smooth reveals.
|
|
32
|
+
|
|
33
|
+
## Rules
|
|
34
|
+
|
|
35
|
+
- Never deliver a static page when the request asks for animation.
|
|
36
|
+
- Scroll = timeline (scrub), not just one-shot triggers.
|
|
37
|
+
- Performance is part of the design: no layout thrash, DPR caps, lazy-loaded canvases.
|
|
38
|
+
- Respect `prefers-reduced-motion`; provide a static fallback.
|
|
39
|
+
- Don't use WebGL for what CSS 3D can do. Don't animate without purpose.
|
|
40
|
+
- Mobile is not a small desktop: reassess pinning and heavy 3D on small viewports.
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
Follow Izanagi AI's output format (## Context → ## File → ## Notes) and pass the Quality Gates (Security → Style → Clarity → Conciseness → Completeness) before delivering.
|
package/AGENTS.md
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
# AGENTS.md —
|
|
1
|
+
# AGENTS.md — Izanagi AI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Izanagi AI é um **framework meta** para agentes de IA: instruções (markdown + JSON) que transformam qualquer LLM em um engenheiro de software autônomo, com arquitetura em camadas, skills especializadas, agentes pré-definidos e uma **CLI executável** (`izanagi`).
|
|
4
|
+
|
|
5
|
+
O repositório combina **conteúdo do framework** (skills, agentes, engines) com o **código-fonte da CLI** (TypeScript → `dist/`).
|
|
6
|
+
|
|
7
|
+
---
|
|
4
8
|
|
|
5
9
|
## Arquitetura
|
|
6
10
|
|
|
7
11
|
- `SYSTEM.md` — Fundação: identidade, princípios, arquitetura em camadas (Decision → Context → Skill → Quality → Reflection → Memory)
|
|
8
12
|
- `RULES.md` — 9 regras operacionais + formato de declaração de skills + regras de comunicação
|
|
9
13
|
- `core/` — 8 engines (decision-engine, context-engine, token-manager, compression-engine, reflection-engine, evolution-engine, quality-gates, planning-engine)
|
|
10
|
-
- `agents/` —
|
|
11
|
-
- `skills/INDEX.md` — Registro central de todas as
|
|
14
|
+
- `agents/` — 11 agentes pré-definidos como JSONs que compõem skills (inclui o **Animation Engineer**)
|
|
15
|
+
- `skills/INDEX.md` — Registro central de todas as skills. **Qualquer skill nova deve ser registrada aqui**
|
|
12
16
|
- `core/skill-resolver.json` — Mapeia short IDs para paths de skills. **Qualquer skill nova deve ter alias aqui** para ser usada por agentes
|
|
17
|
+
- `.opencode/agent/` — Agentes opencode (ex: `animation.md` → ativado digitando `/animation`) copiados para projetos no `izanagi init`
|
|
18
|
+
- `src/` — Código-fonte da CLI (TypeScript). Build: `npm run build` → `dist/`
|
|
13
19
|
|
|
14
20
|
## Regras-chave
|
|
15
21
|
|
|
@@ -22,14 +28,34 @@ NexusAI é um **framework meta** (instruções para agentes de IA), não um proj
|
|
|
22
28
|
- **Quality Gates** (SYSTEM.md:129-135): Security → Style → Clarity → Conciseness → Completeness (nesta ordem)
|
|
23
29
|
- **5 proibições** (RULES.md:49-53): não adivinhar APIs, não codificar sem entender o codebase, não repetir contexto, não ignorar convenções, não hardcodear secrets
|
|
24
30
|
|
|
31
|
+
## CLI (`izanagi`)
|
|
32
|
+
|
|
33
|
+
Instalação: `npm install -g izanagi-ai` (ou `npx izanagi <cmd>` sem instalar).
|
|
34
|
+
|
|
35
|
+
| Comando | Descrição |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `izanagi init [dir] [--packs a,b,c]` | Cria projeto com `.agents/` (seleção interativa de packs de skills). `core` é sempre incluído. |
|
|
38
|
+
| `izanagi run [agent] --task "<task>"` | Classifica a task, seleciona agente + skill chain e resolve as skills no resolver. |
|
|
39
|
+
| `izanagi create <agent\|skill> <name>` | Cria scaffold de agente (JSON) ou skill (SKILL.md) no projeto atual. |
|
|
40
|
+
| `izanagi compile <agent> [file]` | Compila System Prompt completo (agente + SYSTEM.md + RULES.md). |
|
|
41
|
+
| `izanagi list [skills\|agents]` | Lista skills do resolver e agentes disponíveis. |
|
|
42
|
+
| `izanagi doctor` | Valida integridade: SYSTEM/RULES, JSONs de agentes, aliases do resolver. |
|
|
43
|
+
| `izanagi --version` / `--help` | Versão / ajuda. |
|
|
44
|
+
|
|
45
|
+
**Resolução de contexto**: comandos priorizam `.agents/` do projeto atual (criado por `izanagi init`); se não existir, usam a raiz do pacote instalado. Agentes custom criados com `izanagi create` (em `agents/` do projeto) são encontrados pelo `run`.
|
|
46
|
+
|
|
47
|
+
**Animation Engineer**: agente para sites cinematográficos (scrollytelling, 3D WebGL, motion design). Ative com `izanagi run animation --task "..."` ou, no opencode, digitando `/animation`. Skills: `animation-web`, `webgl-3d`, `motion-design` (referências de sites premiados em `skills/*/references.md`).
|
|
48
|
+
|
|
49
|
+
**Packs disponíveis** no `init`: `core` (obrigatório), `agents`, `skills`, `architecture`, `coding`, `database`, `devops`, `security`, `testing`, `memory`, `optimization`, `teaching`.
|
|
50
|
+
|
|
25
51
|
## Estrutura de diretórios
|
|
26
52
|
|
|
27
53
|
| Diretório | Conteúdo |
|
|
28
54
|
|-----------|----------|
|
|
29
|
-
| `core/` | Engines do sistema (8 skills) |
|
|
55
|
+
| `core/` | Engines do sistema (8 skills) + skill-resolver.json |
|
|
30
56
|
| `architecture/` | Padrões arquiteturais (Clean Arch, Hexagonal, DDD, CQRS, etc.) |
|
|
31
|
-
| `coding/` | Skills de engenharia
|
|
32
|
-
| `skills/` |
|
|
57
|
+
| `coding/`, `backend/`, `frontend/` | Skills de engenharia |
|
|
58
|
+
| `skills/` | 111 skills especializadas (quality, debugging, cloud, devops, etc.) |
|
|
33
59
|
| `agents/` | Definições de agentes como JSON |
|
|
34
60
|
| `memory/` | Gerenciamento de memória (6 skills) |
|
|
35
61
|
| `teaching/` | Modo professor e ensino adaptativo |
|
|
@@ -38,19 +64,22 @@ NexusAI é um **framework meta** (instruções para agentes de IA), não um proj
|
|
|
38
64
|
| `database/` | SQL, PostgreSQL, MySQL, Redis |
|
|
39
65
|
| `devops/` | Docker, K8s, CI/CD, Linux |
|
|
40
66
|
| `optimization/` | Redução de tokens, otimização de prompt, custo |
|
|
67
|
+
| `src/` | Código-fonte da CLI (TypeScript) |
|
|
68
|
+
| `dist/` | Build da CLI (gerado, não editar) |
|
|
41
69
|
|
|
42
70
|
## Convenções
|
|
43
71
|
|
|
44
|
-
- **Versão atual**: v2.
|
|
72
|
+
- **Versão atual**: v2.1.0 (SemVer). CHANGELOG.md e ROADMAP.md mostram o plano até v3.0.0
|
|
73
|
+
- **Publicação**: pacote npm `izanagi-ai` (bins `izanagi`/`izanagi-ai`). Bump: `npm run bump:<type>`; publicar: `npm publish` (prepublishOnly roda o build)
|
|
45
74
|
- **Idioma**: maior parte em português (descrições de agentes, READMEs); conteúdo técnico em inglês
|
|
46
75
|
- **Filosofia**: "Architecture first. Code second." — nunca pular planejamento
|
|
47
|
-
- O framework é **carregado automaticamente** via `opencode.json` (`instructions: ["AGENTS.md", "SYSTEM.md"]`) ao iniciar o opencode na raiz do projeto
|
|
76
|
+
- O framework é **carregado automaticamente** via `opencode.json` (`instructions: ["AGENTS.md", "SYSTEM.md"]`) ao iniciar o opencode na raiz do projeto; projetos inicializados com `izanagi init` recebem `opencode.json` apontando para `.agents/`
|
|
48
77
|
|
|
49
78
|
## Skills (Economia de Tokens)
|
|
50
79
|
|
|
51
80
|
Skills nicho foram **desativadas** por padrão para reduzir o system prompt (~50% menos skills carregadas).
|
|
52
81
|
|
|
53
|
-
**Ativas:** `ai-agent`, `ai-agent-dev`, `architecture-patterns`, `economia-tokens`, `frontend`, `frontend-dev`, `handoff-sessao`, `memoria-projeto`, `professor-modo`, `qa`, `qa-engineer`, `security-privacy`, `web-perf-seo`
|
|
82
|
+
**Ativas:** `ai-agent`, `ai-agent-dev`, `animation-web`, `architecture-patterns`, `economia-tokens`, `frontend`, `frontend-dev`, `handoff-sessao`, `memoria-projeto`, `motion-design`, `professor-modo`, `qa`, `qa-engineer`, `security-privacy`, `web-perf-seo`, `webgl-3d`
|
|
54
83
|
|
|
55
84
|
**Desativadas (renomeadas para `SKILL.md.disabled`):** `chaos-engineering`, `cloud-architect`, `cloud-infra`, `data-engineer`, `data-engineering`, `feature-flags`, `graphql`, `i18n-l10n`, `iac-terraform`, `legacy-migration`, `mobile-dev`, `mobile-engineer`, `privacy-engineer`, `serverless-edge`, `sre-reliability`, `wasm`, `web-perf-engineer`, `websocket-realtime`
|
|
56
85
|
|
|
@@ -61,7 +90,7 @@ Skills nicho foram **desativadas** por padrão para reduzir o system prompt (~50
|
|
|
61
90
|
|
|
62
91
|
## Site de Portfólio (SiteIzanagi)
|
|
63
92
|
|
|
64
|
-
O repositório `site/` contém um site Next.js (portfólio do
|
|
93
|
+
O repositório `site/` contém um site Next.js (portfólio do Izanagi AI) publicado em `github.com/pedrohenriquesanchesleal4-debug/SiteIzanagi`.
|
|
65
94
|
**Toda vez que o framework for atualizado**, o agente DEVE também atualizar o site (i18n, estrutura, comandos, versão) no repositório do site e enviar push.
|
|
66
95
|
|
|
67
96
|
## Design Preference (Default)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,77 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
> All notable changes to the
|
|
3
|
+
> All notable changes to the IZANAGI AI framework.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [2.2.0] — 2026-07-31
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- **Package renamed back: `nexusai` → `izanagi-ai`** — o framework volta ao nome original Izanagi AI (repo GitHub `izanagi-ai`, site `SiteIzanagi`)
|
|
11
|
+
- **Bins renomeados**: `nexus`/`nexusai` → `izanagi`/`izanagi-ai` (comandos agora são `izanagi init`, `izanagi run`, etc.)
|
|
12
|
+
- CLI internamente renomeada: `Izanagi AI CLI`, config do projeto em `.izanagi/izanagi.config.json` (era `.nexus/nexus.config.json`)
|
|
13
|
+
- Documentação (AGENTS.md, README, CONTRIBUTING) atualizada para o novo nome/comandos
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- `--help` imprimia "Unknown option" junto com a ajuda (caso `--help` compartilhava bloco com `default:`)
|
|
17
|
+
|
|
18
|
+
## [2.1.1] — 2026-07-31
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Animation Engineer agent** (`agents/animation-agent.json`): sites cinematográficos — scrollytelling, scroll-driven animations, 3D WebGL e motion design
|
|
22
|
+
- **3 novas skills** (com `references.md` pesquisado em 2026):
|
|
23
|
+
- `animation-web` — scroll image sequences estilo Apple, GSAP ScrollTrigger, Lenis, pinned sections, preloaders (referências: uiprompts.app, Skiper UI, KokonutUI, Apple product pages)
|
|
24
|
+
- `webgl-3d` — Three.js / React Three Fiber, shaders, partículas, GLTF/Draco, perf budgets (referências: Bruno Simon, The Monolith, DeepSee, KINESIS)
|
|
25
|
+
- `motion-design` — decisão de biblioteca GSAP vs Anime.js v4 vs Motion vs Lottie vs CSS, timing/easing/stagger
|
|
26
|
+
- **Agente opencode `/animation`** (`.opencode/agent/animation.md`): ativado digitando `/animation` no opencode; copiado automaticamente para projetos pelo `izanagi init`
|
|
27
|
+
- Classificação de tasks de animação/3D no `izanagi run` (ex: `izanagi run "site animado com 3d"` → Animation Engineer)
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- AGENTS.md atualizado: 11 agentes, skills ativas incluem animation-web/webgl-3d/motion-design
|
|
31
|
+
|
|
32
|
+
## [2.1.0] — 2026-07-31
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
- **Pack system** on `izanagi init`: interactive multi-select of skill packs (arrow keys, space, `a`/`n`) or `--packs a,b,c` flag. `core` is always included.
|
|
36
|
+
- `izanagi init <dir>` now creates the project directory if it doesn't exist, plus `.izanagi/izanagi.config.json` and `opencode.json` (auto-loads the framework in opencode)
|
|
37
|
+
- `izanagi run [agent] --task "<task>"`: run a specific agent (incl. custom ones created via `izanagi create`) with full skill chain resolution against `core/skill-resolver.json`
|
|
38
|
+
- Context resolution: CLI commands now prefer the project's `.agents/` (created by init) with fallback to the installed package
|
|
39
|
+
- Interactive pack selector with graceful fallback for non-TTY environments
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- **Package renamed `izanagi-ai` → `nexusai`** (bins `nexus`/`nexusai` unchanged) — reverted in 2.2.0
|
|
43
|
+
- `AGENTS.md` and `README.md` rewritten with the new CLI commands and pack system
|
|
44
|
+
- Commands `compile`, `list`, `doctor` now resolve agents/skills from project `.agents/`, cwd or installed package
|
|
45
|
+
|
|
46
|
+
### Removed
|
|
47
|
+
- **Postinstall auto-copy removed** — this was the cause of duplicated files (`.agents/` + package contents). `.agents/` is now created only by `izanagi init`
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
- `izanagi run "task"` (without `--task`) now works again alongside `run [agent] --task "..."`
|
|
51
|
+
|
|
52
|
+
## [2.0.8] — 2026-07-23
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
- `izanagi create <agent|skill> <name>` command to scaffold new agents and skills
|
|
56
|
+
- `coding/` directory (13 language/framework skills) to npm package and `izanagi init`
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
- `bin/izanagi.js` import path: changed `../src/cli/index.js` → `../dist/cli/index.js` to fix `ERR_MODULE_NOT_FOUND` on published package
|
|
60
|
+
|
|
7
61
|
## [2.0.7] — 2026-07-23
|
|
8
62
|
|
|
9
63
|
### Changed
|
|
10
64
|
- Bump version to 2.0.7
|
|
11
65
|
|
|
12
66
|
### Fixed
|
|
13
|
-
- `bin/
|
|
67
|
+
- `bin/izanagi.js` import path fix (previously attempted, incomplete)
|
|
14
68
|
|
|
15
69
|
## [2.0.6] — 2026-07-23
|
|
16
70
|
|
|
17
71
|
- Bump version to 2.0.6
|
|
18
72
|
|
|
19
73
|
### Fixed
|
|
20
|
-
- `bin/
|
|
74
|
+
- `bin/izanagi.js` import path: changed `../src/cli/index.js` → `../dist/cli/index.js` to fix `ERR_MODULE_NOT_FOUND` on published package
|
|
21
75
|
|
|
22
76
|
## [2.0.0] — 2026-07-22
|
|
23
77
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Izanagi AI
|
|
2
2
|
|
|
3
3
|
Framework modular, skill-oriented para agentes de IA especializados em desenvolvimento de software e automação.
|
|
4
4
|
|
|
@@ -6,46 +6,92 @@ Framework modular, skill-oriented para agentes de IA especializados em desenvolv
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## Instalação
|
|
9
|
+
## Instalação
|
|
10
10
|
|
|
11
|
-
O
|
|
11
|
+
O Izanagi AI possui uma **CLI executável** que pode ser instalada globalmente ou usada via `npx`.
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
#
|
|
15
|
-
|
|
14
|
+
# Instalação global
|
|
15
|
+
npm install -g izanagi-ai
|
|
16
16
|
|
|
17
|
-
# Ou
|
|
18
|
-
|
|
17
|
+
# Ou execução direta via npx (sem instalar)
|
|
18
|
+
npx izanagi <comando>
|
|
19
19
|
|
|
20
|
-
# Agora use diretamente
|
|
21
|
-
|
|
22
|
-
nexus list skills
|
|
23
|
-
nexus doctor
|
|
20
|
+
# Agora use diretamente os comandos izanagi / izanagi-ai
|
|
21
|
+
izanagi --version
|
|
24
22
|
```
|
|
25
23
|
|
|
24
|
+
> **Nota:** o pacote é publicado como `izanagi-ai` e os bins disponíveis são `izanagi` e `izanagi-ai`.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Iniciando um projeto
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Cria o projeto com seleção interativa de packs de skills (.agents/)
|
|
32
|
+
izanagi init my-project
|
|
33
|
+
|
|
34
|
+
# Ou especifique os packs diretamente (core é sempre incluído)
|
|
35
|
+
izanagi init my-project --packs core,agents,coding,database
|
|
36
|
+
|
|
37
|
+
# Entre no projeto e comece a usar
|
|
38
|
+
cd my-project
|
|
39
|
+
izanagi run "Create a login page"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
O `init` cria:
|
|
43
|
+
- `.agents/` — skills, agentes e engines selecionados
|
|
44
|
+
- `.izanagi/izanagi.config.json` — configuração local do projeto
|
|
45
|
+
- `opencode.json` — auto-carrega o framework quando o opencode abre o projeto
|
|
46
|
+
|
|
47
|
+
**Packs disponíveis:** `core` (obrigatório), `agents`, `skills`, `architecture`, `coding`, `database`, `devops`, `security`, `testing`, `memory`, `optimization`, `teaching`.
|
|
48
|
+
|
|
26
49
|
---
|
|
27
50
|
|
|
28
51
|
## Comandos Principais da CLI
|
|
29
52
|
|
|
30
53
|
| Comando | Descrição |
|
|
31
54
|
|---|---|
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
55
|
+
| `izanagi init [dir] [--packs a,b,c]` | Cria projeto com `.agents/` e seleção de packs de skills. |
|
|
56
|
+
| `izanagi run [agent] --task "<task>"` | Analisa a tarefa, seleciona o agente ideal e resolve a corrente de skills. |
|
|
57
|
+
| `izanagi create <agent\|skill> <name>` | Cria scaffold de agente (JSON) ou skill (SKILL.md) no projeto atual. |
|
|
58
|
+
| `izanagi compile <agente> [arquivo]` | Compila um System Prompt completo do agente + fundação do sistema. |
|
|
59
|
+
| `izanagi list [skills\|agents]` | Lista todas as skills e agentes registrados com seus aliases. |
|
|
60
|
+
| `izanagi doctor` | Valida integridade do framework, JSONs de agentes e mapeamentos de aliases. |
|
|
61
|
+
| `izanagi --version` | Exibe a versão da CLI. |
|
|
62
|
+
|
|
63
|
+
### Exemplos
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Task simples (auto-classificação)
|
|
67
|
+
izanagi run "Create a login page"
|
|
68
|
+
|
|
69
|
+
# Agente específico com task explícita
|
|
70
|
+
izanagi run architect --task "Design a microservices architecture"
|
|
71
|
+
|
|
72
|
+
# Agente customizado criado no projeto
|
|
73
|
+
izanagi create agent my-agent
|
|
74
|
+
izanagi run my-agent --task "Create a login page"
|
|
75
|
+
|
|
76
|
+
# Compilar system prompt completo para um agente
|
|
77
|
+
izanagi compile architect prompt_arquiteto.md
|
|
78
|
+
|
|
79
|
+
# Listar e validar
|
|
80
|
+
izanagi list skills
|
|
81
|
+
izanagi doctor
|
|
82
|
+
```
|
|
37
83
|
|
|
38
84
|
---
|
|
39
85
|
|
|
40
86
|
## Estrutura do Projeto
|
|
41
87
|
|
|
42
88
|
```
|
|
43
|
-
|
|
44
|
-
├── bin/ Executável da CLI (bin/
|
|
89
|
+
izanagi-ai/
|
|
90
|
+
├── bin/ Executável da CLI (bin/izanagi.js)
|
|
45
91
|
├── src/cli/ Código fonte dos comandos CLI
|
|
46
92
|
├── core/ Motor central (decisão, contexto, reflexão, skill-resolver)
|
|
47
93
|
├── agents/ Definições de Agentes de IA em JSON
|
|
48
|
-
├── skills/ Skill base (
|
|
94
|
+
├── skills/ Skill base (111 skills especializadas em Markdown)
|
|
49
95
|
├── memory/ Gerenciamento de memória e compressão
|
|
50
96
|
├── optimization/ Redução de tokens e custos
|
|
51
97
|
├── teaching/ Modo professor e aprendizado adaptativo
|
|
@@ -67,26 +113,24 @@ NexusAI/
|
|
|
67
113
|
|
|
68
114
|
## Agentes e Skills
|
|
69
115
|
|
|
70
|
-
O framework possui **
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# Exemplo: Compilar o System Prompt para o Arquiteto de Software
|
|
74
|
-
nexus compile architect prompt_arquiteto.md
|
|
75
|
-
```
|
|
116
|
+
O framework possui **111+ skills** e **10 agentes especializados** encadeados dinamicamente via `core/skill-resolver.json`.
|
|
76
117
|
|
|
77
118
|
---
|
|
78
119
|
|
|
79
|
-
##
|
|
120
|
+
## Desenvolvimento
|
|
80
121
|
|
|
81
122
|
```bash
|
|
82
|
-
#
|
|
83
|
-
npm
|
|
123
|
+
npm install # instala dependências
|
|
124
|
+
npm run build # compila TypeScript → dist/
|
|
125
|
+
npm run doctor # roda o doctor localmente
|
|
126
|
+
npm pack # gera o tarball do pacote
|
|
127
|
+
```
|
|
84
128
|
|
|
85
|
-
|
|
86
|
-
npm pack --dry-run
|
|
129
|
+
### Publicando no NPM
|
|
87
130
|
|
|
88
|
-
|
|
89
|
-
npm
|
|
131
|
+
```bash
|
|
132
|
+
npm run bump:patch # ou bump:minor / bump:major
|
|
133
|
+
npm publish --access public # prepublishOnly roda o build automaticamente
|
|
90
134
|
```
|
|
91
135
|
|
|
92
136
|
---
|
package/ROADMAP.md
CHANGED
|
@@ -126,6 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
## Current Focus
|
|
128
128
|
|
|
129
|
-
**v2.0.0** — Consolidation, plugin system, and CLI tooling to make
|
|
129
|
+
**v2.0.0** — Consolidation, plugin system, and CLI tooling to make Izanagi AI extensible and operable outside of conversation.
|
|
130
130
|
|
|
131
131
|
> "Rome wasn't built in a day. Neither is a great agent framework."
|
package/RULES.md
CHANGED
package/SYSTEM.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# IZANAGI AI — System Foundation
|
|
2
2
|
|
|
3
3
|
> Version 1.0.0
|
|
4
4
|
> Codename: "The Architect's Mind"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
## Identity
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
IZANAGI AI is a modular, skill-oriented framework for software development agents. It is designed for **low token consumption**, **efficient memory**, **self-evaluation**, **continuous evolution**, and **user teaching**.
|
|
11
11
|
|
|
12
12
|
Every decision, every line of code, every interaction passes through a layered engine that ensures quality, security, and clarity.
|
|
13
13
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Animation Engineer",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"role": "Cria sites cinematográficos: scrollytelling, scroll-driven animations, 3D WebGL e motion design — nunca sites estáticos",
|
|
5
|
+
"identity": "Você é um Animation Engineer. Transforma sites comuns em experiências vivas: o scroll é o playhead, cada seção é uma cena, cada elemento tem propósito de movimento. Domina scroll image sequences (estilo Apple), GSAP ScrollTrigger, Three.js/React Three Fiber, Anime.js e Motion. Performance é parte do design: 60fps, sem layout thrash, reduced motion respeitado.",
|
|
6
|
+
"model": "claude-sonnet-4-6",
|
|
7
|
+
"token_budget": 4096,
|
|
8
|
+
"skills": ["animation-web", "webgl-3d", "motion-design", "frontend", "architect", "planner", "ux", "a11y", "perf", "reviewer"],
|
|
9
|
+
"chains": {
|
|
10
|
+
"new_project": ["planner", "animation-web", "motion-design", "architect", "webgl-3d", "ux"],
|
|
11
|
+
"new_feature": ["animation-web", "motion-design", "ux"],
|
|
12
|
+
"implementation": ["motion-design", "animation-web", "webgl-3d"],
|
|
13
|
+
"frontend": ["animation-web", "motion-design", "webgl-3d", "ux"],
|
|
14
|
+
"review": ["animation-web", "ux", "a11y", "performance"]
|
|
15
|
+
},
|
|
16
|
+
"always": [
|
|
17
|
+
"Arquitetar a narrativa por cenas antes de codificar (storyboard)",
|
|
18
|
+
"Tratar o scroll como timeline (scrub), não apenas gatilho one-shot",
|
|
19
|
+
"Só animar transform + opacity; 60fps é requisito",
|
|
20
|
+
"Respeitar prefers-reduced-motion e prover fallback sem JS/WebGL",
|
|
21
|
+
"Consultar as referências de sites premiados (uiprompts, Apple, Skiper, KokonutUI) para estilo",
|
|
22
|
+
"Checar Core Web Vitals (LCP/INP/CLS) antes de entregar"
|
|
23
|
+
],
|
|
24
|
+
"never": [
|
|
25
|
+
"Entregar site estático quando o pedido pedir animação",
|
|
26
|
+
"Usar WebGL para efeito que CSS 3D resolve",
|
|
27
|
+
"Animação sem propósito (movimento que distrai)",
|
|
28
|
+
"Ignorar mobile (pinning pesado, DPR sem cap)",
|
|
29
|
+
"Copiar código de biblioteca sem entender a versão (ex: Anime.js v3 vs v4)"
|
|
30
|
+
]
|
|
31
|
+
}
|