installskill

Skills / getsentry/skills

secret-serialization

Finds secrets and tokens that can leak through generated serialization, logs, spans and error reports.

Pinned commit
a582c51ee29dCommitted 2026-11-14
Files
537 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs, pydantic model_dump, NamedTuple, JavaScript JSON.stringify and util.inspect, structured logs, tracing spans, and error reports. Use when asked to "check for secret serialization", "credential in repr", "repr=False audit", "secret in spans", "token in logs", or when a change adds a credential field to a dataclass, model, or config object, or adds code that stringifies whole objects or every kwarg into telemetry.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install getsentry/skills skills/secret-serialization --agent claude-code --pin a582c51ee29d0f35e6ac321340796f77d43da733

gh picks the directory for the agent, names the folder after the source directory (secret-serialization), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 58fc9b9f946d0c971c1d2446e9a3c8802caf1d2b.

skills CLIpinned

$ npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill secret-serialization -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Claude Code pluginnot pinnedrun inside the agent

> /plugin marketplace add getsentry/skills
> /plugin install sentry-skills@sentry-skills

Not pinned: installs whatever the marketplace currently serves. The plugin bundles 30 other skills with this one. It also installs things this page does not cover: subagents. Plugin scope is chosen in the /plugin dialog.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/getsentry/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet a582c51ee29d0f35e6ac321340796f77d43da733
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/secret-serialization" .claude/skills/secret-serialization

No extra tooling. Files land byte for byte as published in .claude/skills/secret-serialization, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/secret-serialization && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expected3e0559ab6cf8fc24a05fcd6926f72ae2a5fcd20377876f3326681937d9896efd

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Docs · 4SKILL.md · 1

Runs commandsNo match

Code that spawns other processes, or shell code blocks in the instructions.

Network accessNo match

Calls that fetch from or send to a remote host.

Installs packagesNo match

Commands that pull and run third-party packages at use time.

Reads env or credentials3

References to environment variables, tokens, keys or credential files.

0 in scripts · 3 in docs and other text files

Privileged or destructiveNo match

sudo, recursive deletes, permission changes and similar commands.

Dynamic or encoded codeNo match

eval, exec, base64 decoding and remote-script piping, which hide what runs.

Outside hosts mentioned

Hostnames of every URL in the text files.

  • example.invalid×1

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
3e0559ab6cf8fc24a05fcd6926f72ae2a5fcd20377876f3326681937d9896efd
Git tree SHA
58fc9b9f946d0c971c1d2446e9a3c8802caf1d2b
PathKindSizeSHA-256
SKILL.mdSKILL.md10 KBfcff1bc1e5f38bdb…
SOURCES.mdDocs6.8 KBf69fa9c62580bb8b…
SPEC.mdDocs5.1 KB451a87e0aaa66fe8…
references/javascript-typescript.mdDocs5.1 KB14d6a47cf0c36d4a…
references/python.mdDocs9.9 KBd5e9b673d8ef8dad…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
549limit 1,024 characters
SKILL.md body
115 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)
Claude Code plugin
sentry-skills@sentry-skills

Change history

No changes recorded since the first snapshot on 2026-11-28.

Follow changes to this skill in a feed reader: Atom feed · all skills

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.