thanhnguyentung95
08eadda5d7
perf(gen-skill-docs): stop emitting the "When to invoke" body section
...
The Claude catalog trim moved each skill's routing prose ("Use when...",
"Proactively invoke...", voice triggers) out of the frontmatter description
into a "## When to invoke this skill" section at the top of the body. Claude
Code reads only name + description to choose a skill and loads the body after
the skill is invoked, so that text cannot route anything and costs tokens on
every invocation. Keep the one-line trimmed description; drop the section.
The routing prose stays in each template's description, which
--catalog-mode=full and the other hosts still render. Tests that pinned the
section now assert its absence, or check the template instead.
(cherry picked from commit 707ccd6f38 )
2026-10-19 18:36:21 +00:00
..
2026-10-17 17:19:52 +00:00
2026-10-19 07:26:49 +00:00
2026-10-06 18:07:50 +00:00
2026-10-19 18:26:20 +00:00
2026-10-03 07:54:09 -07:00
2026-09-25 13:27:07 -04:00
2026-10-16 22:00:32 +00:00
2026-10-06 18:07:50 +00:00
2026-09-22 14:57:52 -04:00
2026-09-29 08:58:49 -07:00
2026-09-29 08:58:49 -07:00
2026-09-22 14:57:52 -04:00
2026-10-16 23:09:23 +00:00
2026-10-11 19:09:12 +00:00
2026-10-08 17:40:06 +00:00
2026-10-18 06:03:18 +00:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-10-06 23:42:19 +00:00
2026-10-16 23:09:23 +00:00
2026-10-08 17:40:06 +00:00
2026-09-29 06:07:35 -07:00
2026-10-03 18:49:34 -07:00
2026-10-05 01:29:54 +00:00
2026-10-14 17:36:39 +00:00
2026-10-16 23:09:23 +00:00
2026-09-22 14:57:52 -04:00
2026-10-05 01:29:54 +00:00
2026-10-04 07:58:41 -07:00
2026-10-01 13:55:16 -07:00
2026-10-04 07:58:41 -07:00
2026-10-01 13:55:16 -07:00
2026-10-06 18:07:50 +00:00
2026-10-06 18:07:50 +00:00
2026-10-05 01:29:54 +00:00
2026-10-01 11:57:48 -07:00
2026-10-01 13:55:16 -07:00
2026-10-01 11:57:48 -07:00
2026-10-01 11:57:48 -07:00
2026-10-01 11:57:48 -07:00
2026-10-04 07:58:41 -07:00
2026-09-22 14:57:52 -04:00
2026-10-03 07:54:09 -07:00
2026-10-04 07:58:41 -07:00
2026-10-03 18:49:34 -07:00
2026-10-19 18:26:20 +00:00
2026-10-19 18:26:20 +00:00
2026-10-06 18:07:50 +00:00
2026-10-07 23:29:05 +00:00
2026-10-19 18:26:20 +00:00
2026-09-26 18:57:53 -04:00
2026-09-25 12:06:45 -04:00
2026-10-19 07:26:49 +00:00
2026-10-03 07:54:09 -07:00
2026-09-29 08:58:49 -07:00
2026-09-25 12:06:45 -04:00
2026-10-06 10:32:19 -07:00
2026-10-06 23:42:19 +00:00
2026-10-03 01:19:03 -07:00
2026-09-29 06:07:35 -07:00
2026-10-18 00:37:43 +00:00
2026-10-18 00:37:43 +00:00
2026-10-18 00:37:43 +00:00
2026-10-19 09:52:57 +00:00
2026-09-14 14:32:45 -07:00
2026-10-05 01:29:54 +00:00
2026-10-05 01:29:54 +00:00
2026-10-19 18:26:20 +00:00
2026-10-19 18:26:20 +00:00
2026-09-14 14:32:45 -07:00
2026-10-06 18:07:50 +00:00
2026-10-06 18:07:50 +00:00
2026-10-06 18:07:50 +00:00
2026-10-19 18:26:20 +00:00
2026-10-18 01:37:29 +00:00
2026-10-18 01:37:29 +00:00
2026-09-14 14:32:45 -07:00
2026-10-11 16:33:10 +00:00
2026-10-01 13:55:16 -07:00
2026-09-22 14:57:52 -04:00
2026-10-19 18:26:20 +00:00
2026-10-05 01:29:54 +00:00
2026-10-10 22:33:01 +00:00
2026-10-19 07:26:49 +00:00
2026-10-06 23:42:19 +00:00
2026-10-02 11:11:00 -07:00
2026-10-04 07:58:41 -07:00
2026-10-14 17:36:39 +00:00
2026-09-22 14:57:52 -04:00
2026-10-05 01:29:54 +00:00
2026-10-03 18:49:34 -07:00
2026-10-07 23:29:05 +00:00
2026-10-19 07:26:49 +00:00
2026-10-11 00:00:20 +00:00
2026-10-01 11:57:48 -07:00
2026-10-07 23:29:05 +00:00
2026-10-05 01:29:54 +00:00
2026-10-05 01:29:54 +00:00
2026-10-11 00:32:15 +00:00
2026-10-04 07:58:41 -07:00
2026-09-29 06:07:35 -07:00
2026-09-14 14:32:45 -07:00
2026-10-06 18:07:50 +00:00
2026-10-06 18:07:50 +00:00
2026-10-06 18:07:50 +00:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-10-05 01:29:54 +00:00
2026-10-19 18:36:21 +00:00
2026-10-06 18:07:50 +00:00
2026-10-13 15:38:41 +00:00
2026-09-24 01:53:58 -04:00
2026-10-19 07:26:49 +00:00
2026-10-03 07:54:09 -07:00
2026-09-14 14:32:45 -07:00
2026-09-24 01:53:58 -04:00
2026-09-22 14:57:52 -04:00
2026-10-04 07:58:41 -07:00
2026-10-04 07:58:41 -07:00
2026-10-19 07:26:49 +00:00
2026-09-14 14:32:45 -07:00
2026-10-03 01:19:03 -07:00
2026-10-03 01:19:03 -07:00
2026-09-29 08:58:49 -07:00
2026-09-29 08:58:49 -07:00
2026-10-01 13:55:16 -07:00
2026-09-14 14:32:45 -07:00
2026-10-01 13:55:16 -07:00
2026-09-22 14:57:52 -04:00
2026-10-06 23:42:19 +00:00
2026-09-22 14:57:52 -04:00
2026-10-17 04:36:00 +00:00
2026-10-11 03:10:06 +00:00
2026-10-03 07:54:09 -07:00
2026-10-05 01:29:54 +00:00
2026-10-06 18:07:50 +00:00
2026-10-01 11:57:48 -07:00
2026-09-14 14:32:45 -07:00
2026-10-19 09:52:57 +00:00
2026-10-18 00:37:43 +00:00
2026-10-03 18:49:34 -07:00
2026-10-01 13:55:16 -07:00
2026-10-18 00:37:43 +00:00
2026-10-04 07:58:41 -07:00
2026-10-16 23:09:23 +00:00
2026-10-03 01:19:03 -07:00
2026-10-01 13:55:16 -07:00
2026-10-03 18:49:34 -07:00
2026-10-19 09:52:57 +00:00
2026-09-29 08:58:49 -07:00
2026-09-29 08:58:49 -07:00
2026-10-17 04:36:00 +00:00
2026-10-03 18:49:34 -07:00
2026-10-07 23:29:05 +00:00
2026-09-29 08:58:49 -07:00
2026-09-29 06:07:35 -07:00
2026-10-19 18:26:20 +00:00
2026-09-23 08:54:53 -04:00
2026-10-19 18:26:20 +00:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-10-01 13:55:16 -07:00
2026-10-19 07:26:49 +00:00
2026-09-29 06:07:35 -07:00
2026-10-04 07:58:41 -07:00
2026-09-24 01:53:58 -04:00
2026-10-19 07:26:49 +00:00
2026-10-19 07:26:49 +00:00
2026-10-06 23:42:19 +00:00
2026-10-17 03:32:16 +00:00
2026-10-19 10:29:44 +00:00
2026-09-29 06:07:35 -07:00
2026-10-03 01:19:03 -07:00
2026-10-03 01:19:03 -07:00
2026-10-03 01:19:03 -07:00
2026-10-19 18:36:21 +00:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-10-17 03:32:16 +00:00
2026-10-05 01:29:54 +00:00
2026-09-22 14:57:52 -04:00
2026-09-22 14:57:52 -04:00
2026-10-01 13:55:16 -07:00
2026-10-01 13:55:16 -07:00
2026-10-01 13:55:16 -07:00
2026-10-03 01:19:03 -07:00
2026-10-19 07:26:49 +00:00
2026-09-29 08:58:49 -07:00
2026-10-19 09:52:57 +00:00
2026-10-03 07:54:09 -07:00
2026-10-19 07:26:49 +00:00
2026-10-03 01:19:03 -07:00
2026-10-06 18:07:50 +00:00
2026-10-11 00:32:15 +00:00