Skip to content

Commit c08785a

Browse files
committed
docs(skills): the ask skill asks back only about a word with a measure candidate
Step 2 of the ask skill splits its candidates row in the words the list_datasets description and the MCP initialize rule already carry: a word with a measure among its candidates is asked about, and a word whose candidates are all dimensions is at most a possible grouping, never asked about and never a stop for a matched measure. The row pays for itself in the same file: the restated listing and "Do not pick one." (the row above, which "the same way" points at), "A word matches nothing, and" (step 1's candidates bullet) and "on the answer" (the same bullet) are cut. 7507 -> 7508 priced bytes, 1877 tokens against a ceiling of 1877. packages/mcp/src/ask-skill.generated.ts is regenerated from the skill. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2495486 commit c08785a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎packages/mcp/src/ask-skill.generated.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ASK_SKILL_DATA_LOOP: string = [
2929
' `term`, the `member` it names (`measures.<name>` or `dimensions.<name>`) and',
3030
' `matchedOn`. A word matches only when it equals a member\'s name, label or',
3131
' synonym (case, spacing, `_` and `-` aside), never by similarity.',
32-
'- A word that matched nothing may have `candidates` on the answer: members',
32+
'- A word that matched nothing may have `candidates`: members',
3333
' offered as possible readings, each a `{ term, dataset, member }` pointer to a',
3434
' member the same answer lists. A candidate is not a match.',
3535
'- No `list_datasets` among your tools: this environment serves you no governed',
@@ -41,8 +41,9 @@ export const ASK_SKILL_DATA_LOOP: string = [
4141
'|:--|:--|',
4242
'| Each word for a thing measured matches exactly one measure | Compute: step 3. Two words with one measure each ("营收和赢单率") are two metrics, not a choice: compute both, with one `query_dataset` per dataset. |',
4343
'| One word matches several measures, in one dataset or in two | Ask the user which one they mean. List each candidate\'s label, its dataset\'s label and its description. Do not pick one. |',
44+
'| A word with a measure among its `candidates` | Ask the same way; with one candidate, ask whether it is the one meant. |',
45+
'| A word whose `candidates` are all dimensions | At most a possible grouping: never ask about it, and it never stops a matched measure. |',
4446
'| Only a dimension matches | That is a grouping ("by stage"), not a number. You still need a measure match; without one, ask which number is meant. |',
45-
'| A word matches nothing, and `candidates` lists members for it | Ask the user which one they mean, listing each candidate\'s label, its dataset\'s label and its description; with one candidate, ask whether it is the one meant. Do not pick one. |',
4647
'| No match and no candidates for the word for a thing measured | Step 4. |',
4748
'| `membersWithheld: true` on a dataset | Say that it has members (measures or groupings) you may not read; the metric asked for may be among them. Do not say the metric does not exist. |',
4849
'',

‎skills/objectstack-ask/SKILL.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ wrote its business definition) outranks a number you work out yourself.
4444
`term`, the `member` it names (`measures.<name>` or `dimensions.<name>`) and
4545
`matchedOn`. A word matches only when it equals a member's name, label or
4646
synonym (case, spacing, `_` and `-` aside), never by similarity.
47-
- A word that matched nothing may have `candidates` on the answer: members
47+
- A word that matched nothing may have `candidates`: members
4848
offered as possible readings, each a `{ term, dataset, member }` pointer to a
4949
member the same answer lists. A candidate is not a match.
5050
- No `list_datasets` among your tools: this environment serves you no governed
@@ -56,8 +56,9 @@ wrote its business definition) outranks a number you work out yourself.
5656
|:--|:--|
5757
| Each word for a thing measured matches exactly one measure | Compute: step 3. Two words with one measure each ("营收和赢单率") are two metrics, not a choice: compute both, with one `query_dataset` per dataset. |
5858
| One word matches several measures, in one dataset or in two | Ask the user which one they mean. List each candidate's label, its dataset's label and its description. Do not pick one. |
59+
| A word with a measure among its `candidates` | Ask the same way; with one candidate, ask whether it is the one meant. |
60+
| A word whose `candidates` are all dimensions | At most a possible grouping: never ask about it, and it never stops a matched measure. |
5961
| Only a dimension matches | That is a grouping ("by stage"), not a number. You still need a measure match; without one, ask which number is meant. |
60-
| A word matches nothing, and `candidates` lists members for it | Ask the user which one they mean, listing each candidate's label, its dataset's label and its description; with one candidate, ask whether it is the one meant. Do not pick one. |
6162
| No match and no candidates for the word for a thing measured | Step 4. |
6263
| `membersWithheld: true` on a dataset | Say that it has members (measures or groupings) you may not read; the metric asked for may be among them. Do not say the metric does not exist. |
6364

0 commit comments

Comments
 (0)