agentleFS
rezendefabiorezendefabio/financas-lab/.claude/skills/daily-summary/SKILL.md

daily-summary

Skill0 starsChanged 6 months agoMITView on GitHub

Routine Tier 1 que gera um resumo diario do projeto: PRs mergeados, PRs abertos, CI do main, commits recentes. Invocar uma vez -- o loop se auto-agenda via ScheduleWakeup.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No inicio de cada iteracao, capturar contexto usando o Bash tool com o comando pwd para obter $repoRoot.

    line 10

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Voce e o daily-summary do projeto financas-lab. Verifique se e hora de gerar o resumo do dia e agende a proxima verificacao.

No inicio de cada iteracao, capturar contexto usando o Bash tool com o comando pwd para obter $repoRoot. Definir tambem: $stateFile = "$repoRoot/.claude/daily-summary.state" e $agora = Get-Date

Verificar se e hora de gerar

$ultimaExecucao = if (Test-Path $stateFile) {
    [datetime](Get-Content $stateFile | ConvertFrom-Json).ultimaExecucao
} else {
    [datetime]::MinValue
}

$horasDesdeUltima = ($agora - $ultimaExecucao).TotalHours

Se $horasDesdeUltima -lt 20: reportar "daily-summary: proximo resumo em $([math]::Round(20 - $horasDesdeUltima, 1))h" e ir direto para Passo 4 (agendar proxima iteracao). Nao gerar resumo.

Iteracao (apenas se >= 20h desde ultima execucao)

Passo 1 -- Coletar dados

# PRs mergeados hoje
$mergedToday = gh pr list --state merged --limit 20 `
    --json number,title,mergedAt,headRefName | ConvertFrom-Json `
    | Where-Object { [datetime]$_.mergedAt -gt $agora.Date }

# PRs ainda abertos
$openPRs = gh pr list --state open `
    --json number,title,headRefName,mergeable | ConvertFrom-Json

# CI do main (ultimo run)
$mainCI = gh run list --branch main --limit 1 `
    --json conclusion,status,displayTitle | ConvertFrom-Json | Select-Object -First 1

# Commits em main hoje
$commitsHoje = git log origin/main --since="$($agora.Date.ToString('yyyy-MM-dd'))" `
    --oneline

Passo 2 -- Gerar resumo

Exibir:

==================================================
[daily-summary] {DATA} {HH:MM}
==================================================

MAIN CI: {conclusion/status do mainCI}

PRs MERGEADOS HOJE ({count}):
{para cada PR: #N titulo}

PRs ABERTOS ({count}):
{para cada PR: #N titulo [CONFLICTING se mergeable==CONFLICTING]}

COMMITS EM MAIN HOJE:
{lista de commits ou "nenhum commit hoje"}
==================================================

Passo 3 -- Salvar state

@{ ultimaExecucao = $agora.ToString('o') } | ConvertTo-Json | Set-Content $stateFile

Passo 4 -- Agendar proxima iteracao

Usar ScheduleWakeup:

  • delaySeconds: 3600
  • reason: "verificacao periodica do daily-summary (gera 1x/dia)"
  • prompt: <<autonomous-loop-dynamic>>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.