@stigmer/examples 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalogue.gen.js +9 -9
- package/catalogue.gen.js.map +1 -1
- package/journey/index.d.ts +1 -2
- package/journey/index.d.ts.map +1 -1
- package/journey/index.js +1 -2
- package/journey/index.js.map +1 -1
- package/package.json +1 -1
- package/src/catalogue.gen.ts +9 -9
- package/src/journey/index.ts +1 -2
package/catalogue.gen.js
CHANGED
|
@@ -25,14 +25,14 @@ export const EXAMPLES = [
|
|
|
25
25
|
"name": "Variance Reporter",
|
|
26
26
|
"slug": "variance-reporter",
|
|
27
27
|
"description": "Turns a customer's ledger into a variance report.",
|
|
28
|
-
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\
|
|
28
|
+
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\nHand back the report as a file named variance-report.md: a\ntwo-sentence summary, then one table of every account, flagged\naccounts first.\n",
|
|
29
29
|
"disallowedTools": [
|
|
30
30
|
"Bash"
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"manifest": {
|
|
34
34
|
"name": "variance-reporter.yaml",
|
|
35
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n
|
|
35
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n Hand back the report as a file named variance-report.md: a\n two-sentence summary, then one table of every account, flagged\n accounts first.\n disallowed_tools: [Bash]\n"
|
|
36
36
|
},
|
|
37
37
|
"sampleName": "ledger",
|
|
38
38
|
"samples": [
|
|
@@ -65,14 +65,14 @@ export const EXAMPLES = [
|
|
|
65
65
|
"name": "Ticket Replier",
|
|
66
66
|
"slug": "ticket-replier",
|
|
67
67
|
"description": "Drafts a reply to each open ticket in a help desk's export.",
|
|
68
|
-
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\
|
|
68
|
+
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\nHand back the replies as a file named replies.md: one section\nper ticket, headed by its number and subject, with the drafted reply\nunder it, then one line on anything a person should check before\nsending.\n",
|
|
69
69
|
"disallowedTools": [
|
|
70
70
|
"Bash"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"manifest": {
|
|
74
74
|
"name": "ticket-replier.yaml",
|
|
75
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n
|
|
75
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n Hand back the replies as a file named replies.md: one section\n per ticket, headed by its number and subject, with the drafted reply\n under it, then one line on anything a person should check before\n sending.\n disallowed_tools: [Bash]\n"
|
|
76
76
|
},
|
|
77
77
|
"sampleName": "ticket export",
|
|
78
78
|
"samples": [
|
|
@@ -105,14 +105,14 @@ export const EXAMPLES = [
|
|
|
105
105
|
"name": "Contract Reviewer",
|
|
106
106
|
"slug": "contract-reviewer",
|
|
107
107
|
"description": "Flags a contract's risky clauses, each with a safer wording.",
|
|
108
|
-
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\
|
|
108
|
+
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\nHand back the review as a file named contract-review.md: one\nline saying this is a first read and not legal advice, a two-sentence\nsummary, then one section per risky clause, most serious first.\n",
|
|
109
109
|
"disallowedTools": [
|
|
110
110
|
"Bash"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"manifest": {
|
|
114
114
|
"name": "contract-reviewer.yaml",
|
|
115
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n
|
|
115
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n Hand back the review as a file named contract-review.md: one\n line saying this is a first read and not legal advice, a two-sentence\n summary, then one section per risky clause, most serious first.\n disallowed_tools: [Bash]\n"
|
|
116
116
|
},
|
|
117
117
|
"sampleName": "contract",
|
|
118
118
|
"samples": [
|
|
@@ -144,14 +144,14 @@ export const EXAMPLES = [
|
|
|
144
144
|
"name": "Invoice Matcher",
|
|
145
145
|
"slug": "invoice-matcher",
|
|
146
146
|
"description": "Matches an invoice against its purchase order and lists every line that differs.",
|
|
147
|
-
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\
|
|
147
|
+
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\nHand back the result as a file named mismatches.md: one line\nwith the total amount at stake, then one table of every line that\ndoesn't match (SKU, what the order says, what the invoice says, the\namount at stake), largest first. If every line matches, say so.\n",
|
|
148
148
|
"disallowedTools": [
|
|
149
149
|
"Bash"
|
|
150
150
|
]
|
|
151
151
|
},
|
|
152
152
|
"manifest": {
|
|
153
153
|
"name": "invoice-matcher.yaml",
|
|
154
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n
|
|
154
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n Hand back the result as a file named mismatches.md: one line\n with the total amount at stake, then one table of every line that\n doesn't match (SKU, what the order says, what the invoice says, the\n amount at stake), largest first. If every line matches, say so.\n disallowed_tools: [Bash]\n"
|
|
155
155
|
},
|
|
156
156
|
"sampleName": "invoice and purchase order",
|
|
157
157
|
"samples": [
|
|
@@ -175,7 +175,7 @@ export const SKILLS = [
|
|
|
175
175
|
"name": "Spreadsheet export",
|
|
176
176
|
"description": "Use whenever your work makes a table, to save it as a .csv too.",
|
|
177
177
|
"file": "skills/spreadsheet-export/SKILL.md",
|
|
178
|
-
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\
|
|
178
|
+
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\nhand back that table as a CSV file, beside the file your instructions name.\n\n- Name it after that file, with `.csv` in place of its extension: a report saved\n as `variance-report.md` comes with `variance-report.csv`.\n- Write a header row first, then one row per item, in the table's order.\n- Separate columns with commas. Put a value that holds a comma or a quote in\n double quotes, and double each quote inside it.\n- Write numbers plainly: `5100`, not `$5,100`; `-60.0`, not `-60%`.\n\nName the CSV in your answer, in one short line.\n"
|
|
179
179
|
}
|
|
180
180
|
];
|
|
181
181
|
//# sourceMappingURL=catalogue.gen.js.map
|
package/catalogue.gen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogue.gen.js","sourceRoot":"","sources":["src/catalogue.gen.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,mDAAmD;AAInD,4DAA4D;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAuB;IAC1C;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,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iE;QAChF,MAAM,EAAE,oCAAoC;QAC5C,MAAM,EAAE,iwBAAiwB;KAC1wB;CACF,CAAC"}
|
package/journey/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ export { EXAMPLE_AGENT_SLUGS };
|
|
|
3
3
|
export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from "./own-agent.js";
|
|
4
4
|
/**
|
|
5
5
|
* Whether `slug` is an agent the journey made: an example's, or one
|
|
6
|
-
* described in the person's own words. An agent
|
|
7
|
-
* made some other way, is not.
|
|
6
|
+
* described in the person's own words. An agent made any other way is not.
|
|
8
7
|
*/
|
|
9
8
|
export declare function isJourneyAgentSlug(slug: string): boolean;
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
package/journey/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
package/journey/index.js
CHANGED
|
@@ -11,8 +11,7 @@ export { EXAMPLE_AGENT_SLUGS };
|
|
|
11
11
|
export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from "./own-agent.js";
|
|
12
12
|
/**
|
|
13
13
|
* Whether `slug` is an agent the journey made: an example's, or one
|
|
14
|
-
* described in the person's own words. An agent
|
|
15
|
-
* made some other way, is not.
|
|
14
|
+
* described in the person's own words. An agent made any other way is not.
|
|
16
15
|
*/
|
|
17
16
|
export function isJourneyAgentSlug(slug) {
|
|
18
17
|
return EXAMPLE_AGENT_SLUGS.includes(slug) || isOwnAgentSlug(slug);
|
package/journey/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,0EAA0E;AAC1E,0EAA0E;AAC1E,mEAAmE;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,0EAA0E;AAC1E,0EAA0E;AAC1E,mEAAmE;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/examples",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "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",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/src/catalogue.gen.ts
CHANGED
|
@@ -28,14 +28,14 @@ export const EXAMPLES: readonly Example[] = [
|
|
|
28
28
|
"name": "Variance Reporter",
|
|
29
29
|
"slug": "variance-reporter",
|
|
30
30
|
"description": "Turns a customer's ledger into a variance report.",
|
|
31
|
-
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\
|
|
31
|
+
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\nHand back the report as a file named variance-report.md: a\ntwo-sentence summary, then one table of every account, flagged\naccounts first.\n",
|
|
32
32
|
"disallowedTools": [
|
|
33
33
|
"Bash"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"manifest": {
|
|
37
37
|
"name": "variance-reporter.yaml",
|
|
38
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n
|
|
38
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n Hand back the report as a file named variance-report.md: a\n two-sentence summary, then one table of every account, flagged\n accounts first.\n disallowed_tools: [Bash]\n"
|
|
39
39
|
},
|
|
40
40
|
"sampleName": "ledger",
|
|
41
41
|
"samples": [
|
|
@@ -68,14 +68,14 @@ export const EXAMPLES: readonly Example[] = [
|
|
|
68
68
|
"name": "Ticket Replier",
|
|
69
69
|
"slug": "ticket-replier",
|
|
70
70
|
"description": "Drafts a reply to each open ticket in a help desk's export.",
|
|
71
|
-
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\
|
|
71
|
+
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\nHand back the replies as a file named replies.md: one section\nper ticket, headed by its number and subject, with the drafted reply\nunder it, then one line on anything a person should check before\nsending.\n",
|
|
72
72
|
"disallowedTools": [
|
|
73
73
|
"Bash"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"manifest": {
|
|
77
77
|
"name": "ticket-replier.yaml",
|
|
78
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n
|
|
78
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n Hand back the replies as a file named replies.md: one section\n per ticket, headed by its number and subject, with the drafted reply\n under it, then one line on anything a person should check before\n sending.\n disallowed_tools: [Bash]\n"
|
|
79
79
|
},
|
|
80
80
|
"sampleName": "ticket export",
|
|
81
81
|
"samples": [
|
|
@@ -108,14 +108,14 @@ export const EXAMPLES: readonly Example[] = [
|
|
|
108
108
|
"name": "Contract Reviewer",
|
|
109
109
|
"slug": "contract-reviewer",
|
|
110
110
|
"description": "Flags a contract's risky clauses, each with a safer wording.",
|
|
111
|
-
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\
|
|
111
|
+
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\nHand back the review as a file named contract-review.md: one\nline saying this is a first read and not legal advice, a two-sentence\nsummary, then one section per risky clause, most serious first.\n",
|
|
112
112
|
"disallowedTools": [
|
|
113
113
|
"Bash"
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
116
|
"manifest": {
|
|
117
117
|
"name": "contract-reviewer.yaml",
|
|
118
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n
|
|
118
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n Hand back the review as a file named contract-review.md: one\n line saying this is a first read and not legal advice, a two-sentence\n summary, then one section per risky clause, most serious first.\n disallowed_tools: [Bash]\n"
|
|
119
119
|
},
|
|
120
120
|
"sampleName": "contract",
|
|
121
121
|
"samples": [
|
|
@@ -147,14 +147,14 @@ export const EXAMPLES: readonly Example[] = [
|
|
|
147
147
|
"name": "Invoice Matcher",
|
|
148
148
|
"slug": "invoice-matcher",
|
|
149
149
|
"description": "Matches an invoice against its purchase order and lists every line that differs.",
|
|
150
|
-
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\
|
|
150
|
+
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\nHand back the result as a file named mismatches.md: one line\nwith the total amount at stake, then one table of every line that\ndoesn't match (SKU, what the order says, what the invoice says, the\namount at stake), largest first. If every line matches, say so.\n",
|
|
151
151
|
"disallowedTools": [
|
|
152
152
|
"Bash"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
155
|
"manifest": {
|
|
156
156
|
"name": "invoice-matcher.yaml",
|
|
157
|
-
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n
|
|
157
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n Hand back the result as a file named mismatches.md: one line\n with the total amount at stake, then one table of every line that\n doesn't match (SKU, what the order says, what the invoice says, the\n amount at stake), largest first. If every line matches, say so.\n disallowed_tools: [Bash]\n"
|
|
158
158
|
},
|
|
159
159
|
"sampleName": "invoice and purchase order",
|
|
160
160
|
"samples": [
|
|
@@ -179,6 +179,6 @@ export const SKILLS: readonly ExampleSkill[] = [
|
|
|
179
179
|
"name": "Spreadsheet export",
|
|
180
180
|
"description": "Use whenever your work makes a table, to save it as a .csv too.",
|
|
181
181
|
"file": "skills/spreadsheet-export/SKILL.md",
|
|
182
|
-
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\
|
|
182
|
+
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\nhand back that table as a CSV file, beside the file your instructions name.\n\n- Name it after that file, with `.csv` in place of its extension: a report saved\n as `variance-report.md` comes with `variance-report.csv`.\n- Write a header row first, then one row per item, in the table's order.\n- Separate columns with commas. Put a value that holds a comma or a quote in\n double quotes, and double each quote inside it.\n- Write numbers plainly: `5100`, not `$5,100`; `-60.0`, not `-60%`.\n\nName the CSV in your answer, in one short line.\n"
|
|
183
183
|
}
|
|
184
184
|
];
|
package/src/journey/index.ts
CHANGED
|
@@ -14,8 +14,7 @@ export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from ".
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Whether `slug` is an agent the journey made: an example's, or one
|
|
17
|
-
* described in the person's own words. An agent
|
|
18
|
-
* made some other way, is not.
|
|
17
|
+
* described in the person's own words. An agent made any other way is not.
|
|
19
18
|
*/
|
|
20
19
|
export function isJourneyAgentSlug(slug: string): boolean {
|
|
21
20
|
return EXAMPLE_AGENT_SLUGS.includes(slug) || isOwnAgentSlug(slug);
|