Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
eusouwillnunes avatar

Projeto

  • 1 installs
  • Updated June 4, 2026
  • eusouwillnunes/sistema-maestro

Switches the active project mid-session without changing the working directory, listing available projects in the current workspace and updating the active-project cache.

About

A slash command that inspects the active project and switches to another project in the same workspace by globbing maestro configs, without closing Claude Code or changing CWD. A developer uses it to move between projects in a workspace during a session.

  • Lists workspace projects flagged maestro-ativo and switches by slug
  • Updates the active-project cache silently so the next message uses the new project

Projeto by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #2,479 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Jul 8, 2026 (Skillselion catalog sync)
npx skills add https://github.com/eusouwillnunes/sistema-maestro --skill projeto

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
Last updatedJune 4, 2026
Repositoryeusouwillnunes/sistema-maestro

What it does

Switches the active project mid-session without changing the working directory, listing available projects in the current workspace and updating the active-project cache.

Files

SKILL.mdMarkdownGitHub ↗

Projeto

Aplica: [[protocolo-ativacao]]

1. Papel

Permite ao usuário inspecionar projeto ativo e trocar pra outro projeto da mesma workspace sem fechar o Claude Code. Operacional — sem produção criativa.

2. Modos

ComandoComportamento
/projeto (sem arg)Mostra projeto ativo + lista os outros disponíveis na workspace
/projeto <slug>Troca direto se slug bate. Se não bate, AUQ com lista. Atualiza cache
/projeto listarSó lista, não troca

3. Detecção de projetos disponíveis

Glob {workspace}/*/maestro/config.md em profundidade 1, onde {workspace} é o parent dir do {projeto} ativo. Filtra pelos que têm maestro-ativo: true no frontmatter.

Se cache vazio (primeira chamada sem projeto ativo prévio), AUQ pede pra usuário escolher um projeto a partir do CWD.

4. Output esperado de /projeto

Projeto ativo: cliente-x (C:/dev/clientes/cliente-x)
Área de Trabalho: C:/dev/clientes

Outros projetos disponíveis:
- cliente-y
- cliente-z
- meu-pessoal

Pra trocar: /projeto <slug>

5. Output de /projeto <slug> (sucesso)

Trocado pra cliente-y (C:/dev/clientes/cliente-y).

Cache atualizado silenciosamente. Próxima mensagem já roda no projeto novo.

6. Output de /projeto <slug> (slug não bate)

AskUserQuestion com lista dos projetos da workspace:

  • question: "Slug <inválido> não bate. Escolhe qual?"
  • options: [cada projeto da workspace com label = slug]

Após escolha, mesmo flow de troca da Seção 5.

7. Não-objetivos

  • /projeto criar — criação continua via /maestro-onboarding
  • /projeto remover/renomear — operações de gestão de projetos não cabem aqui (fora de escopo)
  • /projeto --all (cross-workspace) — fica pro P1 grafo cross-project

8. Atualização de cache

Após troca, atualizar <workspace>/.maestro/cache/projeto-ativo.md:

mkdir -p "$WORKSPACE/.maestro/cache"
cat > "$WORKSPACE/.maestro/cache/projeto-ativo.md" <<EOF
---
versao: 1
slug: <novo-slug>
caminho-absoluto: <caminho-novo-absoluto-normalizado>
workspace: <workspace>
atualizado-em: $(date -u +%Y-%m-%dT%H:%M:%SZ)
---
EOF

<workspace> foi resolvido pelo protocolo-ativacao.md Sub-fluxo 1 e está disponível em estado da sessão. Se Write falha (permissão), aviso "cache não pode ser persistido — projeto ativo válido só nessa sessão" + segue.

9. Estado da sessão

Após troca, atualizar variáveis em estado da sessão:

  • {projeto} — caminho absoluto novo
  • {projeto-slug} — forma curta nova

Próximos dispatches Agent() recebem o {projeto} substituído pelo caminho novo no bloco CONTEXTO.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.