Skip to content
Back to skills

References

ASecurity

Goal: create a skill that helps an agent answer and author code for a library without repeatedly re-reading upstream docs.

  • 1,037 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
documentationgoapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 29, 2026

npx -y skills add getsentry/skills --skill references --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of References?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for References
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/getsentry-references/badge)](https://www.skillsdirectory.com/skills/getsentry-references)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Case Study: Documentation Skill Synthesis

## Scenario

Goal: create a skill that helps an agent answer and author code for a library without repeatedly re-reading upstream docs.

## Input collection approach

This case used breadth-first source collection and only stopped when new retrieval yielded mostly duplicates:

1. Official docs landing pages and navigation trees.
2. All API/class/module reference pages.
3. Configuration and environment reference pages.
4. Official examples/tutorials.
5. Troubleshooting/error catalog pages.
6. Migration/deprecation/changelog pages.
7. Upstream repo README plus canonical examples.
8. In-repo usage of the library (`rg` on imports and key APIs).

## Coverage matrix used

Required dimensions tracked during synthesis:

1. Setup and installation.
2. Core primitives and API surface.
3. Configuration and runtime options.
4. Normal usage patterns.
5. Edge cases and failure handling.
6. Version-specific differences.
7. Migration and deprecation guidance.
8. Instructional templates/examples for direct reuse.

## Synthesized artifacts produced

The resulting skill references included:

1. Happy-path implementation template.
2. Production-safe variant with defensive defaults.
3. Anti-pattern and corrected implementation.
4. Intent-to-reference routing guide (which section to load for which user request).
5. Gap log with explicit next retrieval steps.

## Source-to-decision trace (sample)

1. Source class: migration/changelog docs.
   Decision: add a version-compatibility checklist section to the skill.
   Why: multiple API signatures existed across versions; without this, answers were inconsistent.
2. Source class: troubleshooting/error catalog.
   Decision: add an error-to-fix lookup table in references.
   Why: user prompts often start from failures, not idealized setup.
3. Source class: in-repo usage scan (`rg`).
   Decision: prioritize examples matching local project patterns.
   Why: produced outputs became directly usable with fewer edits.

## Concrete artifacts (sample)

1. Prompt and output skeleton:
   Prompt: "Configure <library> client for retries and auth in production."
   Output: a production-safe template with retry/backoff, timeout defaults, and auth placeholders.
2. Anti-pattern transformation:
   Before: single inline config with no timeout/error handling.
   After: structured config with explicit timeout, retry policy, and failure handling notes.
3. Reference routing snippet:
   If request mentions "migration" -> load migration/changelog reference first, then API reference.

## What made this high quality

1. Input retrieval was exhaustive across all doc classes, not just top pages.
2. The skill shipped transformed examples, not citation-only notes.
3. Coverage and gaps were explicit, so iteration could continue safely.

Files in this skill

  • authoring-path.md4.7 KB
  • claude-argument-substitutions.md624 B
  • claude-dynamic-context.md579 B
  • claude-frontmatter-invocation.md1.9 KB
  • claude-hook-backed.md913 B
  • claude-subagent-fork.md718 B
  • description-optimization.md1 KB
  • design-principles.md3.6 KB
  • example-documentation-skill.md2.8 KB
  • example-hook-backed-skill.md989 B
  • example-router-skill.md1 KB
  • example-subagent-fork-skill.md1.1 KB
  • example-workflow-process-skill.md2.4 KB
  • execution-shapes.md4.6 KB
  • iteration-evidence.md2.6 KB
  • iteration-path.md1.5 KB
  • layout-argument-driven-skill.md1 KB
  • layout-asset-template-skill.md809 B
  • layout-inline-skill.md731 B
  • layout-reference-backed-skill.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…