Skip to content

Commit 5f8c105

Browse files
committed
deploy: strip the fit assessment's maintainer notes wherever they sit
From 1.0.9 the skill keeps its maintainer notes (an HTML comment block) at the end of the file, so a reader meets the prompt first. The copy started at the first heading and so would have published them; it now deletes that comment block too. Older tags, with the notes above the heading, produce the same page as before. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1mRRB1K2WdYy82kntMQdx
1 parent 1e2fd5a commit 5f8c105

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ jobs:
112112
fi
113113
114114
# /assess.md is the SAME text as the fit-assessment skill, minus the skill's YAML
115-
# frontmatter and the maintainer comment above its first heading — so it is copied
115+
# frontmatter and its maintainer notes (an HTML comment block on lines of their own:
116+
# above the first heading in older tags, at the end of the file since 1.0.9) — so it is copied
116117
# here for exactly the reason the llms mirrors are. It was hand-maintained instead,
117118
# and drifted to 519 lines against the skill's 565, still telling every reader it
118119
# was grounded against npm `0.15.x` / Maven `7.7.x`. That page is the acquisition
@@ -122,7 +123,7 @@ jobs:
122123
# retitle does not silently truncate the page. An empty result means the skill was
123124
# restructured — warn, and leave the page missing rather than publish a blank one.
124125
SKILL=agent-context/skills/metaobjects-fit-assessment/SKILL.md
125-
if [ -f "$SKILL" ] && sed -n '/^# /,$p' "$SKILL" > /tmp/assess.md && [ -s /tmp/assess.md ]; then
126+
if [ -f "$SKILL" ] && sed -n '/^# /,$p' "$SKILL" | sed '/^<!--$/,/^-->$/d' > /tmp/assess.md && [ -s /tmp/assess.md ]; then
126127
cp /tmp/assess.md "$GITHUB_WORKSPACE/www/assess.md"
127128
echo "copied assess.md from metaobjects $TAG ($(wc -l < /tmp/assess.md) lines)"
128129
else

0 commit comments

Comments
 (0)