device-detect

device-detect is a skill for Claude Code, Codex from cintia09/CodeNook. It costs 3 tokens per session (775 once invoked), scanned A, original, MIT.

An environment-marker detector that lists files and folders suggesting which programming language, test runner, or test setup a project uses.

In plain words
What is it for?
It helps identify Python, Node.js, and Go projects, custom test scripts, recorded environment files, and other configuration hints for test planning.
Why use it?
It finds clues about how tests should run without assuming the project uses a particular device or simulator.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps identify Python, Node.js, and Go projects, custom test scripts, recorded environment files, and other configuration hints for test planning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cintia09/codenook/device-detect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cintia09/CodeNook --skill device-detect
Clone the repo
git clone --depth 1 https://github.com/cintia09/CodeNook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for device-detect

README.md
[![agentmods](https://agentmods.dev/badge/skills/cintia09/codenook/device-detect/github.svg)](https://agentmods.dev/skills/cintia09/codenook/device-detect)
Your own site
<a href="https://agentmods.dev/skills/cintia09/codenook/device-detect"><img src="https://agentmods.dev/badge/skills/cintia09/codenook/device-detect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for device-detect

Your own site · 80×15
<a href="https://agentmods.dev/skills/cintia09/codenook/device-detect"><img src="https://agentmods.dev/badge/skills/cintia09/codenook/device-detect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00003 $0.00775
Opus 5.5 $0.00001 $0.00310
Sonnet 5.5 $0.00001 $0.00155
Haiku 4.5 $0.00000 $0.00077

Measured 2mo ago against content hash f4e7377d333a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

device-detect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (detect.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/development/skills/device-detect/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

device-detect — plugin-shipped skill (development plugin)

Role

Enumerate every file / directory under <target-dir> that might be an execution-environment hint, classify each by a generic bucket, and emit a JSON envelope. The skill is deliberately liberal — it does not decide what kind of device or simulator the target is, only what markers exist. Classification is the test-planner's job, and it does that by:

  1. Searching workspace memory for a matching environment record: <codenook> knowledge search "test-environment target=<basename>".
  2. If memory is silent, asking the user to identify the environment.

CLI

detect.py --target-dir <dir> [--json]

Detection (generic markers, no device-type hard-coding)

Marker pattern under <target> Bucket
pyproject.toml / setup.py / pytest.ini local-python
package.json local-node
go.mod local-go
Any .codenook-test-env* / .test-env* file recorded-env
Any dot-config file matching *.cfg / *.toml / *.yaml at the root that does not match a known software runner unknown-config
Any scripts/run-*-tests.sh custom-runner
(none of the above) unknown

The buckets are intentionally generic (local-*, recorded-env, unknown-config, custom-runner, unknown) — the specific device or simulator type (ADB / QEMU / SSH-into-board / JTAG / network fixture / …) is never decided here. That decision belongs to the calling role + memory + user.

JSON envelope (--json)

{
  "target": "src/",
  "buckets": ["local-python", "custom-runner"],
  "primary": "local-python",
  "markers": {
    "local-python": ["pyproject.toml"],
    "custom-runner": ["scripts/run-board-tests.sh"]
  },
  "memory_search_hint": "test-environment target=foo"
}

Read the full file on GitHub · 84 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 84 lines · 3 tokens per session scan A f4e7377d333a

Subscribe to this mod's changes

device-detect is a skill published in the GitHub repository cintia09/CodeNook (5 stars, last pushed 1mo ago), licensed MIT. It adds 3 tokens to every session and 775 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

device-detect compared with skills from other repositories

device-detect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
device-detectcintia09/CodeNookSkill51mo agoMITA3Claude Code, Codex
incident-response-skillagentfront/frontmcpSkill148todayApache-2.0A24Claude Code, Codex
directory-based-skillagentfront/frontmcpSkill148todayApache-2.0A28Claude Code, Codex
parameterized-skillagentfront/frontmcpSkill148todayApache-2.0A21Claude Code, Codex
basic-inline-skillagentfront/frontmcpSkill148todayApache-2.0A19Claude Code, Codex
project-scaffoldchainlesschain/chainlesschainSkill11todaynoneA25Claude Code
handler-test-skillchainlesschain/chainlesschainSkill11todaynoneA8Claude Code