@stigmer/examples
v0.3.2
Published
Stigmer's example agents as one list: each a job an agent does for a product's users, with its agent, its sample files and its first message, read by the React kit's launcher and its create picker
Readme
Examples
Each example is a job an agent does inside a developer's product: whose product it is, what its users hand over, and what the agent hands back. Each folder holds the Agent and its sample files.
| Job | What goes in | What comes back | Folder |
| --- | --- | --- | --- |
| Variance report, for an accounting product | A quarter's ledger | variance-report.md, flagged accounts first | variance-report/ |
| Ticket replies, for a help desk | An export of open tickets | replies.md, a drafted reply for each | ticket-replies/ |
| Contract check, for a legal or HR tool | A services agreement | contract-review.md, each risky clause with a safer wording | contract-check/ |
| Invoice match, for a procurement tool | An invoice and its purchase order | mismatches.md, every line that doesn't match, with the amount at stake | invoice-match/ |
The console asks a newcomer the same question with the same four jobs, and
catalogue.json is the list both read: scripts/generate.mjs turns it, the
manifests, the samples and the skills into the @stigmer/examples package.
skills/spreadsheet-export/ is a
ready-made skill any of the four agents can be given: it hands back the job's
table as a .csv file too, beside the report, which opens in any spreadsheet.
Make it yours gives it
to the variance reporter.
Variance report (variance-report/)
An accounting product's user uploads a quarter's ledger. The agent works out
each account's variance against its budget, flags the accounts that ran more
than 10% over or under, and hands back variance-report.md, a file the user can
open.
variance-reporter.yamlis the Agent: what the job is and how to do it. It has no shell, because the job needs none.ledger.csvis the user's ledger.
With Stigmer running (stigmer up, and your Anthropic key in
ANTHROPIC_API_KEY), from this folder:
stigmer apply -f variance-reporter.yaml
stigmer run variance-reporter --attach ledger.csv --download ./out --until turn -m "Review this quarter's ledger."
cat out/variance-report.mdYour first agent job walks through the same job step by step. To start it from your own code instead, read Do the same job from your app; to give your users the chat, read Put the agent in your app. Agents, Sessions and Files explain what each step did.
The variance report's two files are the quickstart's own, byte for byte, and a test keeps them so. Every other example runs the same way from its own folder, with its manifest and its samples.
