How this skill is triggered — by the user, by Claude, or both
Slash command
/bantou:nightly-batchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Batch-process all client companies overnight. Fetches unprocessed
Batch-process all client companies overnight. Fetches unprocessed transactions from freee API, runs the full classification pipeline, and generates a summary for morning review.
Invoke this skill when:
The nightly_run tool executes the following steps for each client:
list_freee_companies to enumerate all connected companieslist_freee_deals with a date filter for
unprocessed entries since the last runEach transaction passes through Stage 0 exclusion (7 rules). Excluded items are logged but not classified.
Query the correction memory for each transaction description. Memory hits are classified instantly without API cost.
Remaining items flow through Stage 1 keyword matching, then Stage 2 AI fallback for unmatched entries.
Results are routed by confidence level:
| Confidence | Action | Review needed |
|---|---|---|
| High (>= 85%) | Auto-classified, logged | No |
| Medium (70-84%) | Auto-classified, flagged | Morning review |
| Low (< 70%) | Held for human review | Yes |
After all clients are processed, a batch summary is produced:
The nightly batch is designed to work with Anthropic Routines for automated scheduling. Typical configuration:
The batch processor uses freee's OAuth API to:
The FREEE_ACCESS_TOKEN environment variable must be configured
in the plugin settings. Token refresh is handled automatically.
nightly_run — execute the full batch pipelinelist_freee_companies — enumerate connected companieslist_freee_deals — fetch unprocessed transactionsnpx claudepluginhub michielinksee/bantou --plugin bantouGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.