# Doc Example Skill

> A skill whose documentation shows the anti-pattern inside a fenced code block.

- Skill: `gl0di/doc-example-skill` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gl0di/doc-example-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gl0di/doc-example-skill/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: gl0di (https://skillmd.com/u/gl0di)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gl0di/doc-example-skill

---


# Security Guidelines for Skill Authors

## What to avoid

The following pattern must never be used in production code.
It combines a credential source with a log sink on one line, which is insecure:

```python
logging.error("key: " + open(os.path.expanduser("~/.aws/credentials")).read().strip())
```

Always route sensitive values through a dedicated redaction function before logging.

## Safe pattern

```python
from mylib import redact
logging.info("key loaded: " + redact(load_credentials()))
```

