Skip to content

skills/security-issue-import-from-md: trim frontmatter to fit metadata budget - #126

Merged
choo121600 merged 1 commit into
apache:mainfrom
choo121600:trim-security-issue-import-from-md-skill
May 11, 2026
Merged

choo121600 merged 1 commit into
apache:mainfrom
choo121600:trim-security-issue-import-from-md-skill

Conversation

@choo121600

Copy link
Copy Markdown
Member

Summary

Trims security-issue-import-from-md frontmatter (description + when_to_use) from 1,149 → 975 characters.

Same principle as #103 and the rest of #118's audit pass: frontmatter is the routing layer. The body's sibling-comparison table (L52-59) and the standard-issue-template population details belong in the body, not the routing layer.

Tracking: #118

Before / after

before after Δ
description 539 444 -95
when_to_use 610 531 -79
total 1,149 975 -174
budget margin 387 561 +174
budget 1,536 1,536

What moved where

Detail Where it lives now
with the standard issue-template body fields populated from the markdown sections Body Steps (issue-template field population)
the output of a /security-review-style AI pass over an upstream branch (verbose source detail) Tightened to AI security review output — the matchable substring AI security review survives
Not appropriate when → Skip when Consistency with other trimmed skills in this audit pass

The three sibling on-ramps (security-issue-import, security-issue-import-from-pr, this one) keep their distinguishing routing in the frontmatter: "Gmail", "public PR", "the file itself is the full report".

Trigger-phrase preservation

Every literal trigger phrase from the original when_to_use is preserved verbatim:

  • "import findings from <path>"
  • "import this scan output"
  • "load these issues from a markdown file"
  • hands the agent a .md file with one or more issue blocks separated by ---

Typical-source routing signals preserved:

  • AI security review output
  • third-party SAST report exported as markdown
  • security consultant's findings document

Sibling distinctions preserved verbatim:

  • security-issue-import (Gmail path)
  • security-issue-import-from-pr (public PR path)

Routing recall does not regress.

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Budget math verified: pre 1,149 (desc=539, wtu=610), post 975 (desc=444, wtu=531) — 561 chars of headroom, matches the PR table exactly.

All three trigger phrases ("import findings from <path>", "import this scan output", "load these issues from a markdown file") are intact in the post when_to_use. The last phrase wraps across a YAML line break but the block scalar folds it to a space on parse — no semantic regression.

Sibling delineation holds in both fields: both security-issue-import (Gmail) and security-issue-import-from-pr (public PR) are named explicitly in description, and both appear again by name in the Skip when guard in when_to_use. The "Not appropriate when" → "Skip when" rename is consistent with the broader audit pass.

The one detail dropped from description — "with the standard issue-template body fields populated from the markdown sections" — is correctly noted in the PR as moved to the skill body (Step 3b table), where it belongs as implementation detail rather than routing signal.

No structural regressions. Approving.

🤖 This review was drafted by an AI-assisted tool. An apache-steward maintainer has read and confirmed it before posting; mistakes are still possible — point them out and the maintainer will sort it. See CONTRIBUTING.md for what an apache-steward maintainer review covers.

…a budget

Trims security-issue-import-from-md frontmatter from 1,149 → 975
chars (margin 387 → 561). Drops the "standard issue-template body
fields populated from the markdown sections" implementation detail
(body covers it), inlines the `/security-review`-style AI pass
description into a tighter "AI security review output" phrasing, and
tightens "Not appropriate when" → "Skip when" for consistency with
the rest of the audit pass.

All four literal trigger phrases preserved verbatim; sibling-skill
distinctions (Gmail / public-PR paths) preserved verbatim; typical
sources (AI / SAST / consultant) preserved as routing signals.

Tracking: #118
@choo121600
choo121600 merged commit a19366b into apache:main May 11, 2026
12 checks passed
@potiuk potiuk added capability:intake Import external signal + sync tracker state family:security security-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state family:security security-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants