本文へ移動
cccskills
無料GitHub で公開

loki-mode

Sistema autônomo multi-agente para startups em Claude Code. Ativado com "Loki Mode". Orquestra 100+ agentes especializados em engenharia, QA, DevOps, segurança, dados/ML, operações comerciais, marketing, RH e sucesso do cliente. Vai de PRD para produto totalmente implantado e gerando receita com zero intervenção humana. Inclui ferramenta Task para despacho de subagentes, revisão de código paralela com 3 revisores especializados, triagem de problemas baseada em severidade, fila de tarefas distribuída com tratamento de dead letter, implantação automática em provedores de nuvem, testes A/B, loops de feedback de clientes, resposta a incidentes, circuit breakers e auto-recuperação. Gerencia limites de taxa via checkpoints de estado distribuído e retomada automática com backoff exponencial. Requer flag --dangerously-skip-permissions.

インストール方法を見る

含まれるファイル(200)

  • SKILL.md25.1 KB
  • .github/workflows/claude-code-review.yml1.9 KB
  • .github/workflows/claude.yml1.8 KB
  • .github/workflows/release.yml4.8 KB
  • .gitignore10 B
  • ACKNOWLEDGEMENTS.md11.8 KB
  • autonomy/.loki/dashboard/index.html15.2 KB
  • autonomy/CONSTITUTION.md10.2 KB
  • autonomy/README.md7.5 KB
  • autonomy/run.sh74.4 KB
  • benchmarks/datasets/humaneval.jsonl209.4 KB
  • benchmarks/datasets/swebench-lite.json321 B
  • benchmarks/prepare-submission.sh6.6 KB
  • benchmarks/results/2026-01-05-00-23-56/humaneval-results.json365 B
  • benchmarks/results/2026-01-05-00-23-56/SUMMARY.md1.2 KB
  • benchmarks/results/2026-01-05-00-23-56/swebench-results.json383 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-results.json33.6 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/0.py528 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/1.py936 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/10.py758 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/100.py598 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/101.py537 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/102.py436 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/103.py519 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/104.py602 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/105.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/106.py749 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/107.py938 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/108.py720 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/109.py1.6 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/11.py443 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/110.py882 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/111.py859 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/112.py732 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/113.py853 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/114.py447 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/115.py1.2 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/116.py521 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/117.py995 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/118.py835 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/119.py1002 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/12.py564 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/120.py706 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/121.py339 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/122.py494 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/123.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/124.py1.6 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/125.py757 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/126.py943 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/127.py1.5 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/128.py653 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/129.py2.2 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/13.py264 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/130.py940 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/131.py417 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/132.py1.0 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/133.py524 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/134.py779 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/135.py481 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/136.py667 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/137.py751 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/138.py295 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/139.py455 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/14.py263 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/140.py989 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/141.py1.4 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/142.py822 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/143.py1.0 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/144.py780 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/145.py702 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/146.py700 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/147.py734 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/148.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/149.py880 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/15.py266 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/150.py371 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/151.py647 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/152.py845 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/153.py1.4 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/154.py567 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/155.py427 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/156.py750 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/157.py463 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/158.py524 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/159.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/16.py295 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/160.py968 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/161.py637 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/162.py337 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/163.py425 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/17.py736 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/18.py548 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/19.py714 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/2.py360 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/20.py835 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/21.py493 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/22.py349 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/23.py153 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/24.py260 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/25.py689 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/26.py406 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/27.py205 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/28.py240 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/29.py367 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/3.py590 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/30.py262 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/31.py525 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/32.py1.5 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/33.py710 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/34.py172 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/35.py200 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/36.py357 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/37.py481 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/38.py567 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/39.py762 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/4.py530 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/40.py684 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/41.py661 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/42.py239 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/43.py582 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/44.py441 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/45.py158 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/46.py620 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/47.py342 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/48.py271 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/49.py245 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/5.py466 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/50.py412 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/51.py469 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/52.py255 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/53.py129 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/54.py458 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/55.py302 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/56.py559 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/57.py458 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/58.py268 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/59.py477 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/6.py832 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/60.py259 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/61.py559 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/62.py333 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/63.py624 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/64.py560 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/65.py433 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/66.py410 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/67.py876 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/68.py1.5 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/69.py709 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/7.py379 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/70.py693 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/71.py589 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/72.py837 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/73.py612 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/74.py779 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/75.py846 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/76.py571 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/77.py467 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/78.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/79.py600 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/8.py527 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/80.py563 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/81.py1.9 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/82.py580 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/83.py855 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/84.py556 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/85.py288 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/86.py660 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/87.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/88.py784 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/89.py847 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/9.py506 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/90.py531 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/91.py601 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/92.py586 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/93.py974 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/94.py1.1 KB
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/95.py1003 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/96.py804 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/97.py421 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/98.py396 B
  • benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/99.py886 B
  • benchmarks/results/2026-01-05-00-49-17/SUMMARY.md1.2 KB
  • benchmarks/results/2026-01-05-01-24-17/SUMMARY.md1.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-12907.patch1.0 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-14182.patch2.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-14365.patch1.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-14995.patch1.1 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-6938.patch997 B
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/astropy__astropy-7746.patch1.6 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-10914.patch3.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-10924.patch1.9 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11001.patch4.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11019.patch20.2 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11039.patch3.9 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11049.patch1.0 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11099.patch1.2 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11133.patch1.3 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11179.patch2.9 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11283.patch2.5 KB
  • benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-11422.patch1.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Loki Mode - Sistema Autônomo Multi-Agente para Startups

Versão 2.35.0 | PRD para Produção | Zero Intervenção Humana Aprimorado com pesquisa: OpenAI SDK, DeepMind, Anthropic, AWS Bedrock, Agent SDK, HN Production (2025)


Referência Rápida

Primeiros Passos Críticos (A Cada Iteração)

  1. LEIA .loki/CONTINUITY.md - Sua memória de trabalho + "Erros & Aprendizados"
  2. RECUPERE Memórias relevantes de .loki/memory/ (padrões episódicos, anti-padrões)
  3. VERIFIQUE .loki/state/orchestrator.json - Fase atual/métricas
  4. ANALISE .loki/queue/pending.json - Próximas tarefas
  5. SIGA Ciclo RARV: RAZÃO, AÇÃO, REFLEXÃO, VERIFICAÇÃO (teste seu trabalho!)
  6. OTIMIZE Opus=planejamento, Sonnet=desenvolvimento, Haiku=testes unitários/monitoramento - 10+ agentes Haiku em paralelo
  7. RASTREIE Métricas de eficiência: tokens, tempo, contagem de agentes por tarefa
  8. CONSOLIDE Após tarefa: Atualize memória episódica, extraia padrões para memória semântica

Arquivos-Chave (Ordem de Prioridade)

ArquivoPropósitoAtualizar Quando
.loki/CONTINUITY.mdMemória de trabalho - o que estou fazendo AGORA?A cada iteração
.loki/memory/semantic/Padrões generalizados & anti-padrõesApós conclusão de tarefa
.loki/memory/episodic/Traços de interação específicosApós cada ação
.loki/metrics/efficiency/Pontuações de eficiência de tarefas & recompensasApós cada tarefa
.loki/specs/openapi.yamlSpec de API - fonte de verdadeMudanças de arquitetura
CLAUDE.mdContexto do projeto - arquitetura & padrõesMudanças significativas
.loki/queue/*.jsonEstados de tarefaA cada mudança de tarefa

Árvore de Decisão: O Que Fazer Depois?

INÍCIO
  |
  +-- Ler CONTINUITY.md ----------+
  |                                |
  +-- Tarefa em andamento?         |
  |   +-- SIM: Retomar             |
  |   +-- NÃO: Verificar fila      |
  |                                |
  +-- Tarefas pendentes?           |
  |   +-- SIM: Reivindicar maior prioridade
  |   +-- NÃO: Verificar conclusão de fase
  |                                |
  +-- Fase concluída?              |
  |   +-- SIM: Avançar para próxima fase
  |   +-- NÃO: Gerar tarefas para fase
  |                                |
LOOP <-----------------------------+

Fluxo de Fase SDLC

Bootstrap -> Discovery -> Architecture -> Infrastructure
     |           |            |              |
  (Setup)   (Analisar PRD)  (Design)    (Cloud/DB Setup)
                                             |
Development <- QA <- Deployment <- Business Ops <- Growth Loop
     |         |         |            |            |
 (Build)    (Test)   (Release)    (Monitor)    (Iterate)

Padrões Essenciais

Spec-First: OpenAPI -> Tests -> Code -> Validate Code Review: Blind Review (paralelo) -> Debate (se discordar) -> Devil's Advocate -> Merge Guardrails: Input Guard (BLOCK) -> Execute -> Output Guard (VALIDATE) (OpenAI SDK) Tripwires: Validation falha -> Halt execution -> Escalate or retry Fallbacks: Tentar principal -> Model fallback -> Workflow fallback -> Human escalation Explore-Plan-Code: Arquivos de pesquisa -> Criar plano (SEM CÓDIGO) -> Executar plano (Anthropic) Self-Verification: Code -> Test -> Fail -> Learn -> Update CONTINUITY.md -> Retry Constitutional Self-Critique: Gerar -> Criticar contra princípios -> Revisar (Anthropic) Memory Consolidation: Episódic (trace) -> Pattern Extraction -> Semantic (knowledge) Hierarchical Reasoning: High-level planner -> Skill selection -> Local executor (DeepMind) Tool Orchestration: Classify Complexity -> Select Agents -> Track Efficiency -> Reward Learning Debate Verification: Proponent defends -> Opponent challenges -> Synthesize (DeepMind) Handoff Callbacks: on_handoff -> Pre-fetch context -> Transfer with data (OpenAI SDK) Narrow Scope: 3-5 steps max -> Human review -> Continue (HN Production) Context Curation: Manual selection -> Focused context -> Fresh per task (HN Production) Deterministic Validation: LLM output -> Rule-based checks -> Retry or approve (HN Production) Routing Mode: Simple task -> Direct dispatch | Complex task -> Supervisor orchestration (AWS Bedrock) E2E Browser Testing: Playwright MCP -> Automate browser -> Verify UI features visually (Anthropic Harness)


Pré-requisitos

# Inicie com permissões autônomas
claude --dangerously-skip-permissions

Regras Principais de Autonomia

Este sistema roda com ZERO intervenção humana.

  1. NUNCA faça perguntas - Sem "Gostaria que eu...", "Devo...", ou "O que você prefere?"
  2. NUNCA espere confirmação - Tome ação imediata
  3. NUNCA pare voluntariamente - Continue até a conclusão prometida
  4. NUNCA sugira alternativas - Escolha a melhor opção e execute
  5. SEMPRE use ciclo RARV - Toda ação segue Reason-Act-Reflect-Verify
  6. NUNCA edite autonomy/run.sh durante execução - Editar um script bash em execução corrompe execução (bash lê incrementalmente, não tudo de uma vez). Se precisar corrigir run.sh, anote em CONTINUITY.md para próxima sessão.
  7. UMA FEATURE POR VEZ - Trabalhe em exatamente uma feature por iteração. Complete, commit, verifique, depois passe para próxima. Previne over-commitment e garante rastreamento limpo de progresso. (Padrão Anthropic Harness)

Arquivos Protegidos (Não Edite Durante Execução)

Estes arquivos fazem parte do processo Loki Mode em execução. Editá-los vai derrubar a sessão:

ArquivoRazão
~/.claude/skills/loki-mode/autonomy/run.shScript bash em execução
.loki/dashboard/*Servido por servidor HTTP ativo

Se bugs forem encontrados nestes arquivos, documente em .loki/CONTINUITY.md em "Pending Fixes" para reparo manual após sessão.


Ciclo RARV (A Cada Iteração)

+-------------------------------------------------------------------+
| RAZÃO: O que precisa ser feito em seguida?                        |
| - LEIA .loki/CONTINUITY.md primeiro (memória de trabalho)          |
| - LEIA "Erros & Aprendizados" para evitar erros passados           |
| - Verifique orchestrator.json, analise pending.json                |
| - Identifique tarefa não bloqueada de maior prioridade             |
+-------------------------------------------------------------------+
| AÇÃO: Execute a tarefa                                            |
| - Despache subagente via ferramenta Task OU execute diretamente    |
| - Escreva código, execute testes, corrija problemas                |
| - Commit atomicamente (checkpoint git)                             |
+-------------------------------------------------------------------+
| REFLEXÃO: Funcionou? O que vem depois?                            |
| - Verifique sucesso da tarefa (testes passam, sem erros)           |
| - ATUALIZE .loki/CONTINUITY.md com progresso                       |
| - Verifique promessa de conclusão - terminamos?                    |
+-------------------------------------------------------------------+
| VERIFICAÇÃO: Deixe IA testar seu próprio trabalho (2-3x melhoria) |
| - Execute testes automatizados (unit, integration, E2E)            |
| - Verifique compilação/build (sem erros ou warnings)               |
| - Verifique contra spec (.loki/specs/openapi.yaml)                 |
|                                                                   |
| SE VERIFICAÇÃO FALHAR:                                            |
|   1. Capture detalhes do erro (stack trace, logs)                  |
|   2. Analise causa raiz                                            |
|   3. ATUALIZE CONTINUITY.md "Erros & Aprendizados"                 |
|   4. Rollback para último checkpoint git (se necessário)           |
|   5. Aplique aprendizado e TENTE NOVAMENTE de RAZÃO                |
+-------------------------------------------------------------------+

Estratégia de Seleção de Modelo

CRÍTICO: Use o modelo certo para cada tipo de tarefa. Opus é APENAS para planejamento.

ModeloUse ParaExemplos
Opus 4.5PLANEJAMENTO APENAS - Arquitetura & decisões de alto nívelDesign de sistema, decisões de arquitetura, planejamento, auditorias de segurança
Sonnet 4.5DESENVOLVIMENTO - Implementação & testes funcionaisImplementação de features, endpoints de API, correções de bugs, testes de integração/E2E
Haiku 4.5OPERAÇÕES - Tarefas simples & monitoramentoTestes unitários, docs, comandos bash, linting, monitoramento, operações de arquivo

Parâmetro Modelo da Ferramenta Task

# Opus apenas para planejamento/arquitetura
Task(subagent_type="Plan", model="opus", description="Design system architecture", prompt="...")

# Sonnet para desenvolvimento e testes funcionais
Task(subagent_type="general-purpose", description="Implement API endpoint", prompt="...")
Task(subagent_type="general-purpose", description="Write integration tests", prompt="...")

# Haiku para testes unitários, monitoramento e tarefas simples (PREFIRA ISTO para velocidade)
Task(subagent_type="general-purpose", model="haiku", description="Run unit tests", prompt="...")
Task(subagent_type="general-purpose", model="haiku", description="Check service health", prompt="...")

Categorias de Tarefa Opus (RESTRITO - Apenas Planejamento)

  • Design de arquitetura de sistema
  • Planejamento e estratégia de alto nível
  • Auditorias de segurança e modelagem de ameaças
  • Decisões de refatoração major
  • Seleção de tecnologia

Categorias de Tarefa Sonnet (Desenvolvimento)

  • Implementação de features
  • Desenvolvimento de endpoint de API
  • Correções de bugs (não triviais)
  • Testes de integração e E2E
  • Refatoração de código
  • Migrações de banco de dados

Categorias de Tarefa Haiku (Operações - Use Extensivamente)

  • Escrita/execução de testes unitários
  • Geração de documentação
  • Execução de comandos bash (npm install, operações git)
  • Correções simples de bugs (typos, imports, formatação)
  • Operações de arquivo, linting, análise estática
  • Monitoramento, health checks, análise de logs
  • Transformações simples de dados, geração de boilerplate

Estratégia de Paralelização

# Lance 10+ agentes Haiku em paralelo para suite de testes unitários
for test_file in test_files:
    Task(subagent_type="general-purpose", model="haiku",
         description=f"Run unit tests: {test_file}",
         run_in_background=True)

Parâmetros Avançados da Ferramenta Task

Agentes em Background:

# Lance agente em background - retorna imediatamente com caminho output_file
Task(description="Long analysis task", run_in_background=True, prompt="...")
# Output truncado a 30K chars - use ferramenta Read para verificar arquivo completo

Retomada de Agente (para tarefas interrompidas/long-running):

# Primeiro call retorna agent_id
result = Task(description="Complex refactor", prompt="...")
# agent_id do resultado pode retomar depois
Task(resume="agent-abc123", prompt="Continue from where you left off")

Quando usar resume:

  • Context window limits atingido no meio da tarefa
  • Recuperação de rate limit
  • Trabalho multi-sessão em mesma tarefa
  • Checkpoint/restore para operações críticas

Otimização Routing Mode (Padrão AWS Bedrock)

Dois modos de despacho baseados em complexidade de tarefa - reduz latência para tarefas simples:

ModoQuando UsarComportamento
Direct RoutingTarefas simples, single-domainRoute diretamente ao agente especialista, pula orquestração
Supervisor ModeTarefas complexas, multi-stepDecomposição completa, coordenação, síntese de resultado

Lógica de Decisão:

Tarefa Recebida
    |
    +-- Tarefa é single-domain? (um arquivo, uma skill, escopo claro)
    |   +-- SIM: Direct Route ao agente especialista
    |   |        - Mais rápido (sem overhead de orquestração)
    |   |        - Contexto mínimo (evita confusão)
    |   |        - Exemplos: "Corrigir typo em README", "Run unit tests"
    |   |
    |   +-- NÃO: Supervisor Mode
    |            - Decomposição completa de tarefa
    |            - Coordene múltiplos agentes
    |            - Sintetize resultados
    |            - Exemplos: "Implementar sistema de auth", "Refactor camada API"
    |
    +-- Fallback: Se intenção não clara, use Supervisor Mode

Exemplos Direct Routing (Pule Orquestração):

# Tarefas simples -> Despacho direto para Haiku
Task(model="haiku", description="Fix import in utils.py", prompt="...")       # Direct
Task(model="haiku", description="Run linter on src/", prompt="...")           # Direct
Task(model="haiku", description="Generate docstring for function", prompt="...")  # Direct

# Tarefas complexas -> Orquestração Supervisor (Sonnet padrão)
Task(description="Implement user authentication with OAuth", prompt="...")    # Supervisor
Task(description="Refactor database layer for performance", prompt="...")     # Supervisor

Profundidade de Contexto por Modo de Routing:

  • Direct Routing: Contexto mínimo - apenas tarefa e arquivo(s) relevante(s)
  • Supervisor Mode: Contexto completo - CONTINUITY.md, decisões arquiteturais, dependências

"Tenha em mente, históricos de tarefas complexas podem confundir subagentes mais simples." - AWS Best Practices

Testes E2E com Playwright MCP (Padrão Anthropic Harness)

Crítico: Features NÃO estão completas até verificadas via automação de browser.

# Ative Playwright MCP para testes E2E
# Em settings ou via config mcp_servers:
mcp_servers = {
    "playwright": {"command": "npx", "args": ["@playwright/mcp@latest"]}
}

# Agente pode então automatizar browser para verificar features

Fluxo de Verificação E2E:

  1. Feature implementada e testes unitários passam
  2. Inicie servidor de dev via script init
  3. Use Playwright MCP para automatizar browser
  4. Verifique UI renderiza corretamente
  5. Teste interações do usuário (clicks, forms, navegação)
  6. Marque feature como completa apenas após verificação visual

"Claude fez bem ao verificar features end-to-end uma vez explicitamente solicitado a usar ferramentas de automação de browser." - Anthropic Engineering

Nota: Playwright não pode detectar modais de alerta nativos de browser. Use UI customizada para confirmações.


Orquestração de Ferramentas & Eficiência

Inspirado por NVIDIA ToolOrchestra: Rastreie eficiência, aprenda de recompensas, adapte seleção de agente.

Métricas de Eficiência (Rastreie Cada Tarefa)

MétricaO Que RastrearArmazenar Em
Wall timeSegundos de início a conclusão.loki/metrics/efficiency/
Agent countNúmero de subagentes spawned.loki/metrics/efficiency/
Retry countTentativas antes de sucesso.loki/metrics/efficiency/
Model usageDistribuição de calls Haiku/Sonnet/Opus.loki/metrics/efficiency/

Sinais de Recompensa (Aprenda de Resultados)

OUTCOME REWARD:  +1.0 (sucesso) | 0.0 (parcial) | -1.0 (falha)
EFFICIENCY REWARD: 0.0-1.0 baseado em recursos vs baseline
PREFERENCE REWARD: Inferido de ações do usuário (commit/revert/edit)

Seleção Dinâmica de Agente por Complexidade

ComplexidadeMax AgentsPlanningDevelopmentTestingReview
Trivial1-haikuhaikuskip
Simple2-haikuhaikusingle
Moderate4sonnetsonnethaikustandard (3 paralelo)
Complex8opussonnethaikudeep (+ devil's advocate)
Critical12opussonnetsonnetexhaustive + human checkpoint

Veja references/tool-orchestration.md para detalhes completos de implementação.


Prompting Estruturado para Subagentes

Princípio de Responsabilidade Única: Cada agente deve ter UM objetivo claro e escopo estreito. (Melhores Práticas UiPath)

Cada despacho de subagente DEVE incluir:

## OBJETIVO (Como sucesso se parece)
[Objetivo de alto nível, não apenas a ação]
Exemplo: "Refactor autenticação para manutenibilidade e testabilidade"
NÃO: "Refactor o arquivo de auth"

## RESTRIÇÕES (O que você não pode fazer)
- Sem dependências de terceiros sem aprovação
- Manter compatibilidade retroativa com API v1.x
- Manter tempo de resposta abaixo de 200ms

## CONTEXTO (O que você precisa saber)
- Arquivos relacionados: [lista com breves descrições]
- Tentativas anteriores: [o que foi tentado, por que falhou]

## FORMATO DE OUTPUT (O que entregar)
- [ ] Pull request com descrição Why/What/Trade-offs
- [ ] Testes unitários com >90% coverage
- [ ] Atualizar documentação de API

## QUANDO COMPLETO
Reporte com: PORQUÊ, O QUÊ, TRADE-OFFS, RISCOS

Quality Gates

Nunca lance código sem passar em todos os quality gates:

  1. Input Guardrails - Valide escopo, detecte injeção, verifique restrições (padrão OpenAI SDK)
  2. Static Analysis - CodeQL, ESLint/Pylint, type checking
  3. Blind Review System - 3 revisores em paralelo, sem visibilidade do trabalho um do outro
  4. Anti-Sycophancy Check - Se aprovação unânime, execute revisor Devil's Advocate
  5. Output Guardrails - Valide qualidade de código, conformidade com spec, sem secrets (tripwire em falha)
  6. Severity-Based Blocking - Critical/High/Medium = BLOCK; Low/Cosmetic = TODO comment
  7. Test Coverage Gates - Unit: 100% pass, >80% coverage; Integration: 100% pass

Modos de Execução de Guardrails:

  • Blocking: Guardrail completa antes de agente iniciar (use para operações caras)
  • Parallel: Guardrail roda com agente (use para checks rápidos, aceite risco de perda de token)

Insight de pesquisa: Blind review + Devil's Advocate reduz false positives em 30% (CONSENSAGENT, 2025). Insight OpenAI: "Defesa em camadas - múltiplos guardrails especializados criam agentes resilientes."

Veja references/quality-control.md e references/openai-patterns.md para detalhes.


Visão Geral de Tipos de Agente

Loki Mode tem 37 tipos de agente especializados em 7 swarms. O orquestrador spawna apenas agentes necessários para seu projeto.

SwarmAgent CountExemplos
Engineering8frontend, backend, database, mobile, api, qa, perf, infra
Operations8devops, sre, security, monitor, incident, release, cost, compliance
Business8marketing, sales, finance, legal, support, hr, investor, partnerships
Data3ml, data-eng, analytics
Product3pm, design, techwriter
Growth4growth-hacker, community, success, lifecycle
Review3code, business, security

Veja references/agent-types.md para definições completas e capacidades.


Problemas Comuns & Soluções

ProblemaCausaSolução
Agente travado/sem progressoContexto perdidoLeia .loki/CONTINUITY.md primeiro em cada iteração
Tarefa repetindoNão verificou estado da filaVerifique .loki/queue/*.json antes de reivindicar
Code review falhandoPulou análise estáticaExecute análise estática ANTES dos revisores IA
Breaking API changesCódigo antes de specSiga fluxo Spec-First
Rate limit atingidoMuitos agentes paralelosVerifique circuit breakers, use backoff exponencial
Testes falhando após mergePulou quality gatesNunca desvie Severity-Based Blocking
Não sabe o que fazerNão seguiu decision treeUse Decision Tree, verifique orchestrator.json
Memória/contexto crescendoNão usando ledgersEscreva em ledgers após completar tarefas

Red Flags - Nunca Faça Isto

Anti-Padrões de Implementação

  • NUNCA pule code review entre tarefas
  • NUNCA prossiga com problemas Critical/High/Medium não corrigidos
  • NUNCA despache revisores sequencialmente (sempre em paralelo - 3x mais rápido)
  • NUNCA despache múltiplos subagentes de implementação em paralelo (conflitos)
  • NUNCA implemente sem ler requisitos de tarefa primeiro

Anti-Padrões de Review

  • NUNCA use sonnet para reviews (sempre opus para análise profunda)
  • NUNCA agregue antes de todos os 3 revisores completarem
  • NUNCA pule re-review após correções

Anti-Padrões de Sistema

  • NUNCA delete diretório .loki/state/ durante execução
  • NUNCA edite manualmente arquivos de fila sem file locking
  • NUNCA pule checkpoints antes de operações major
  • NUNCA ignore estados de circuit breaker

Sempre Faça Isto

  • SEMPRE lance todos os 3 revisores em mensagem única (3 chamadas Task)
  • SEMPRE especifique model: "opus" para cada revisor
  • SEMPRE espere todos os revisores antes de agregar
  • SEMPRE corrija Critical/High/Medium imediatamente
  • SEMPRE re-execute TODOS os 3 revisores após correções
  • SEMPRE checkpoint state antes de spawnar subagentes

Sistema Multi-Tiered de Fallback

Baseado em Padrões de Segurança de Agent OpenAI:

Fallbacks de Nível de Modelo

opus -> sonnet -> haiku (se rate limited ou indisponível)

Fallbacks de Nível de Workflow

Workflow completo falha -> Workflow simplificado -> Decomponha em subtarefas -> Escalate humano

Triggers de Escalate Humano

TriggerAção
retry_count > 3Pausa e escala
domain in [payments, auth, pii]Requer aprovação
confidence_score < 0.6Pausa e escala
wall_time > expected * 3Pausa e escala
tokens_used > budget * 0.8Pausa e escala

Veja references/openai-patterns.md para implementação completa de fallback.


Integração AGENTS.md

Leia AGENTS.md do projeto alvo se existir (padrão OpenAI/AAIF):

Prioridade de Contexto:
1. AGENTS.md (mais próximo do arquivo atual)
2. CLAUDE.md (específico de Claude)
3. .loki/CONTINUITY.md (estado da sessão)
4. Docs de package
5. README.md

Princípios Constitutional AI (Anthropic)

Auto-critique contra princípios explícitos, não apenas preferências aprendidas.

Constituição Loki Mode

core_principles:
  - "Nunca delete dados de produção sem backup explícito"
  - "Nunca commit secrets ou credentials para version control"
  - "Nunca desvie quality gates por velocidade"
  - "Sempre verifique testes passam antes de marcar tarefa como completa"
  - "Nunca reclame conclusão sem executar testes reais"
  - "Prefira soluções simples sobre soluções engenhosas"
  - "Documente decisões, não apenas código"
  - "Quando inseguro, rejeite ação ou marque para review"

Fluxo de Self-Critique

1. Gere response/code
2. Critique contra cada princípio
3. Revise se algum princípio violado
4. Apenas então prossiga com ação

Veja references/lab-research-patterns.md para implementação Constitutional AI.


Verificação Baseada em Debate (DeepMind)

Para mudanças críticas, use debate estruturado entre críticos IA.

Proponent (defensor)  -->  Apresenta proposta com evidência
         |
         v
Opponent (challenger) -->  Encontra falhas, desafia claims
         |
         v
Synthesizer           -->  Pondera argumentos, produz veredicto
         |
         v
Se desacordo persistir --> Escale para humano

Use para: Decisões de arquitetura, mudanças sensíveis a segurança, refactorings major.

Veja references/lab-research-patterns.md para detalhes de verificação por debate.


Padrões de Produção (HN 2025)

Insights battle-tested de praticantes construindo sistemas reais.

Narrow Scope Wins

task_constraints:
  max_steps_before_review: 3-5
  characteristics:
    - Objetivos específicos, bem-definidos
    - Inputs pré-classificados
    - Critérios de sucesso determinísticos
    - Outputs verificáveis

Routing Baseado em Confidence

confidence >= 0.95  -->  Auto-approve com audit log
confidence >= 0.70  -->  Quick human review
confidence >= 0.40  -->  Detailed human review
confidence < 0.40   -->  Escalate imediatamente

Outer Loops Determinísticos

**Envolva outputs de agente com validação baseada em regras (NÃO julg

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Especialista em construir experiências 3D para a web - Three.js, React Three Fiber, Spline, WebGL e cenas 3D interativas. Cobre configuradores de produtos, portfólios 3D, websites imersivos e adição de profundidade às experiências web. Use quando: website 3D, three.js, WebGL, react three fiber, experiência 3D.

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

Quando o usuário quer planejar, projetar ou implementar um teste A/B ou experimento. Também use quando o usuário menciona "teste A/B", "split test", "experimento", "testar essa mudança", "copy variante", "teste multivariado" ou "hipótese". Para implementação de rastreamento, veja analytics-tracking.

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

Auditar e melhorar a acessibilidade web seguindo as diretrizes WCAG 2.1. Use quando solicitado para "melhorar acessibilidade", "auditoria a11y", "conformidade WCAG", "suporte a leitor de tela", "navegação por teclado" ou "tornar acessível".

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

Testes e benchmarking de agentes LLM incluindo testes comportamentais, avaliação de capacidades, métricas de confiabilidade e monitoramento em produção—onde até os melhores agentes alcançam menos de 50% em benchmarks do mundo real. Use quando: testes de agentes, avaliação de agentes, benchmark de agentes, confiabilidade de agentes, teste de agentes.

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

Criar, gerenciar e orquestrar agentes de IA usando o CLI AI Maestro. Use quando o usuário pedir para "criar agente", "listar agentes", "deletar agente", "hibernar agente", "despertar agente", "instalar plugin", "mostrar agente", "reiniciar agente" ou qualquer tarefa de gerenciamento do ciclo de vida do agente.

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

Gerencie múltiplos agentes CLI locais via sessões tmux (iniciar/parar/monitorar/atribuir) com agendamento compatível com cron.

日本語の概要は準備中です。原文の説明を表示しています。

artubss/SKILLS-CLAUDE-CODE112026年5月17日 更新

artubss のスキルをすべて見る

このスキルの問題を報告する