Doc Example Skill

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

gl0di Updated

File contents

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:

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

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

Safe pattern

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

gl0di/clawseccheck/tree/main/fixtures/clean_i013_doc_example/skills/doc-example-skill commit ae1b4c4337

Frequently asked questions

npx skillmds@latest add gl0di/doc-example-skill