Show the user's resolved turnstile configuration (the raw config file contents, which keys are overridden vs default, the computed metricsDir, and any config warnings) without editing anything. Use when the user asks what their turnstile config is or why a setting behaves the way it does.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Turnstile Config?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/edseabolt-turnstile-config)
---
name: turnstile-config
description: Show the user's resolved turnstile configuration (the raw config file contents, which keys are overridden vs default, the computed metricsDir, and any config warnings) without editing anything. Use when the user asks what their turnstile config is or why a setting behaves the way it does.
---
# Turnstile config
Display the user's turnstile configuration read-only. Never apply edits:
point at `examples/turnstile.example.json` (every key except the computed
`metricsDir`) and the config table in `docs/usage/configuration.md` instead.
## Steps
1. Locate the raw config file: the `TURNSTILE_CONFIG` env var if set, else
`~/.config/opencode/turnstile.json`. If the file is absent, report "no
config file (all defaults in effect)".
2. Show the file's contents: the full JSON, verbatim, in a fenced code
block (or the plain text for non-JSON formats). The report must always
include the raw file contents, not only a summary of overrides. If the
file is absent, show nothing and say all defaults are in effect.
3. Cross-check the resolved values against `status --json` (detect context:
inside the turnstile repo use `node bin/cli.mjs status --json`; elsewhere
`npx opencode-turnstile status --json`); its `suspension.configPath` and
`suspension.configFilePresent` confirm which file the CLI consulted.
4. Compare the raw overrides against the defaults table (docs/usage/configuration.md)
and mark each key as overridden or default.
5. Report `metricsDir` as computed at load time; it is deliberately absent
from `examples/turnstile.example.json`.
6. Surface any `[turnstile] config:` warnings from the journal. The actual
wording is `config: unknown key "…" ignored` or
`config: invalid value for "…"; keeping default`.
7. If the user names any status options, forward them to the CLI invocation.
If the CLI rejects an option, surface the usage error verbatim; never
retry blind, never drop the flag.