Skip to content

fix(registry): land behavior line links on the line - #434

Merged
harlan-zw merged 1 commit into
mainfrom
fix-behavior-line-links
Oct 6, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix-behavior-line-links

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #425

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

#425 merged before this commit reached it. Its Skill behaviors panel links each SKILL.md match to blob/…/SKILL.md#L<n>, but GitHub renders Markdown, so the link opens the preview at the top of the file. Markdown links now use the source view, ?plain=1#L<n>, which scrolls to the line.

The same commit fixes three smaller gaps from the review of #425:

  • The detail cache key moves from v3 to v4, so pages cached before deploy never show "No rule matched." for Skills that match.
  • A Skill whose upstream SKILL.md is gone gets no links instead of links to 404 pages.
  • The panel renders whenever the rail links to it, including Skills whose behaviors come only from file names.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

GitHub renders Markdown, so a #L anchor on SKILL.md opened the preview
at the top. Markdown links now use the source view. The detail cache
key moves to v4, so pages cached before deploy never claim that no rule
matched. A Skill whose upstream file is gone gets no links, and the
panel renders whenever the rail links to it.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 5, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 5, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-06 06:16 UTC.

GitHub merged this pull request.

No material findings were recorded.

The pull request closed.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 5, 2026
@harlan-zw
harlan-zw merged commit d213bb8 into main Oct 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant