rig is a minimal TypeScript agent harness skill for sandboxed agentic workflows.
gh skill install githubnext/rigSave as program.md:
# Review Git Diff
```rig
// Agent role: review the current diff and return prioritized findings.
const reviewDiff = agent({
model: "small",
instructions: p`Review ${p.bash("git diff -- .")} and return only the declared output.`,
output: s.object({
summary: s.string,
risk: s.enum("low", "medium", "high"),
}),
});
export default reviewDiff;
```See skills/rig/SKILL.md for construction rules, schema helpers, prompt intents, addons, tools, dynamic workflows, engines, and the launcher CLI.
npm test
npm run typecheck