AGENT SKILL

context-agent

Agente de contexto para continuidade entre sessoes. Salva resumos, decisoes, tarefas pendentes e carrega briefing automatico na sessao seguinte.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 1
Forks
0

01 前言 Front Matter

name
context-agent
risk
safe
tags
[ "context", "session-management", "continuity", "memory" ]
tools
[ "claude-code", "antigravity", "cursor", "gemini-cli", "codex-cli" ]
author
renat
source
community
date_added
2026-03-06
description
Agente de contexto para continuidade entre sessoes. Salva resumos, decisoes, tarefas pendentes e carrega briefing automatico na sessao seguinte.

02 资源文件 13

03 SKILL.md 正文

Context Agent

Overview

Agente de contexto para continuidade entre sessoes. Salva resumos, decisoes, tarefas pendentes e carrega briefing automatico na sessao seguinte.

When to Use This Skill

  • When the user mentions "salvar contexto" or related topics
  • When the user mentions "salva o contexto" or related topics
  • When the user mentions "proxima sessao" or related topics
  • When the user mentions "briefing sessao" or related topics
  • When the user mentions "resumo sessao" or related topics
  • When the user mentions "continuidade sessao" or related topics

Do Not Use This Skill When

  • The task is unrelated to context agent
  • A simpler, more specific tool can handle the request
  • The user needs general-purpose assistance without domain expertise

How It Works

Continuidade perfeita entre sessões do Claude Code. Captura, comprime e restaura contexto automaticamente — tópicos, decisões, tarefas, erros, arquivos modificados e descobertas técnicas.

Localização

C:\Users\renat\skills\context-agent\
├── SKILL.md
├── scripts/
│   ├── config.py               # Paths e constantes
│   ├── models.py               # Dataclasses
│   ├── session_parser.py       # Parser JSONL do Claude Code
│   ├── session_summary.py      # Gerador de resumos
│   ├── active_context.py       # Gerencia ACTIVE_CONTEXT.md
│   ├── project_registry.py     # Registro de projetos
│   ├── compressor.py           # Compressão e arquivamento
│   ├── search.py               # Busca FTS5
│   ├── context_loader.py       # Carrega contexto
│   └── context_manager.py      # CLI entry point
├── references/
│   ├── context-format.md       # Especificação de formatos
│   └── compression-rules.md    # Regras de compressão
└── data/
    ├── sessions/               # session-001.md, session-002.md, ...
    ├── archive/                # Sessões arquivadas
    ├── ACTIVE_CONTEXT.md       # Contexto consolidado (max 150 linhas)
    ├── PROJECT_REGISTRY.md     # Status de todos os projetos
    └── context.db              # SQLite FTS5 para busca

Inicialização (Primeira Vez)

python C:\Users\renat\skills\context-agent\scripts\context_manager.py init

Salvar Contexto Da Sessão Atual

Quando a sessão está terminando ou antes de uma tarefa longa, salvar o contexto:

python C:\Users\renat\skills\context-agent\scripts\context_manager.py save

O que faz:

  1. Encontra o arquivo JSONL mais recente da sessão
  2. Analisa todas as mensagens, tool calls e resultados
  3. Gera resumo estruturado (session-NNN.md)
  4. Atualiza ACTIVE_CONTEXT.md com novas informações
  5. Sincroniza com MEMORY.md (carregado no system prompt)
  6. Indexa para busca full-text

Carregar Contexto (Briefing)

No início de uma nova sessão, carregar o contexto:

python C:\Users\renat\skills\context-agent\scripts\context_manager.py load

Gera briefing com: projetos ativos, tarefas pendentes (por prioridade), bloqueadores, decisões recentes, convenções e resumo das últimas sessões.

Status Rápido

python C:\Users\renat\skills\context-agent\scripts\context_manager.py status

Resumo em poucas linhas: projetos, pendências críticas, bloqueadores.

Buscar No Histórico

python C:\Users\renat\skills\context-agent\scripts\context_manager.py search "rate limit"

Busca full-text (SQLite FTS5) em todas as sessões — tópicos, decisões, erros, arquivos, etc.

Manutenção

python C:\Users\renat\skills\context-agent\scripts\context_manager.py maintain

Arquiva sessões antigas, comprime arquivo, ressincroniza MEMORY.md, reconstrói índice de busca.

Fluxo De Trabalho

[Sessão termina]
  → save → session-NNN.md + ACTIVE_CONTEXT.md + MEMORY.md

[Nova sessão começa]
  → MEMORY.md já está no system prompt (automático)
  → load → briefing detalhado com tudo que precisa saber

[Contexto cresce demais]
  → maintain → arquiva sessões antigas, comprime, otimiza

O Que É Capturado Em Cada Sessão

  • Tópicos: assuntos discutidos
  • Decisões: escolhas técnicas e de arquitetura
  • Tarefas concluídas: o que foi feito
  • Tarefas pendentes: o que falta (com prioridade)
  • Arquivos modificados: quais arquivos foram editados/criados
  • Descobertas: insights técnicos importantes
  • Erros resolvidos: problemas e suas soluções
  • Questões em aberto: perguntas sem resposta
  • Métricas: tokens consumidos, mensagens, tool calls

Integração Com Memory.Md

O ACTIVE_CONTEXT.md é automaticamente copiado para: C:\Users\renat\.claude\projects\C--Users-renat-skills\memory\MEMORY.md

Como o MEMORY.md é incluído no system prompt de toda sessão, o Claude sempre começa sabendo o estado atual dos projetos, tarefas pendentes e decisões tomadas — sem precisar de nenhuma ação manual.

Referências

  • Para formato detalhado dos arquivos: references/context-format.md
  • Para regras de compressão e arquivamento: references/compression-rules.md

Best Practices

  • Provide clear, specific context about your project and requirements
  • Review all suggestions before applying them to production code
  • Combine with other complementary skills for comprehensive analysis

Common Pitfalls

  • Using this skill for tasks outside its domain expertise
  • Applying recommendations without understanding your specific context
  • Not providing enough project context for accurate analysis

Related Skills

  • context-guardian - Complementary skill for enhanced analysis

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

04 同仓库更多 Skills

YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

vercel-sandbox

Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

slack

Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

electron

Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

dogfood

Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.

★ 1