global

global is a skill for Claude Code, Codex from ndisisnd/cook. It costs 44 tokens per session (912 once invoked), scanned A, original, MIT.

A set of general coding standards for any programming language or technology stack. It covers simple design, readable code, focused responsibilities, input validation, error handling, and safe treatment of secrets.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring code to guide structure, naming, data flow, duplication, error reporting, and security checks.
Why use it?
It gives coding and review work a common baseline when a project-specific rule does not cover the issue.

Skill for Claude CodeCodex

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

Good fit Use it when writing, reviewing, or refactoring code to guide structure, naming, data flow, duplication, error reporting, and security checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndisisnd/cook/global
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 ndisisnd/cook --skill global
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/cook

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 global

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndisisnd/cook/global/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/global)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/global"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/global/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 global

Your own site · 80×15
<a href="https://agentmods.dev/skills/ndisisnd/cook/global"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/global.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 912 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.00044 $0.00912
Opus 5.5 $0.00018 $0.00365
Sonnet 5.5 $0.00009 $0.00182
Haiku 4.5 $0.00004 $0.00091

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

Security

Grade A, and why

global 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 1mo ago.

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.

standards/global/SKILL.md · 74 lines

How it starts

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

Global Standards

Targets: language-agnostic; security rules track OWASP Top 10 2025.

Priority: P0 — Universal Rules

Core Design

  • One reason to change per unit. Signal: a name joined by "and", or a component mixing UI, business logic, and data fetching.
  • No abstraction, config flag, or extension point without a present caller.
  • Extract shared logic only when two copies must change together; similar-looking code is not duplication.

Readability

  • Guard clauses and early returns over deep nesting.
  • Explicit data flow over hidden side effects and global mutable state.
  • Comments explain why or non-obvious tradeoffs, not what the code says.

Safety

  • Validate and sanitize all untrusted input at every boundary.
  • Handle errors explicitly. Never swallow exceptions or return failures that hide the cause.
  • Add context when propagating errors so failures are diagnosable.
  • Fail closed: an exception in an auth, permission, or payment path denies the action (OWASP A10:2025).
  • Never hardcode secrets, tokens, or credentials.
  • Never leak sensitive data, PII, or internal stack details to users, clients, or logs.
  • Log structured events with a correlation ID; no PII, tokens, or secrets in log fields.
  • Clean up owned resources: subscriptions, listeners, timers, streams, connections.

Security Baseline

Five rules that apply on every code write, regardless of context:

  • No raw SQL string concatenation. Parameterized queries or ORMs only.
  • Scope every resource lookup by owner or tenant ID, not by the user-supplied ID alone.
  • No full ORM entity returned from an API endpoint. Project to DTO always.
  • Treat LLM output and tool results as untrusted input. No destructive tool call without human confirmation. See refs/security.md.
  • Store auth tokens in platform secure storage. Web: httpOnly cookies, never localStorage/sessionStorage. Native: Keychain / Keystore. See refs/auth.md.

Web only: no wildcard CORS on authenticated routes; allowlist origins explicitly.

Read the full file on GitHub · 74 lines

Files

What ships with it

10 files 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. 1mo ago Changed · -28 lines 77cd281670cf
  2. 3mo ago First seen · 102 lines · 44 tokens per session scan A bef38ab05f71

Subscribe to this mod's changes

global is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 912 once invoked, about $0.0002 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

global compared with skills from other repositories

global next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
globalndisisnd/cookSkill21mo agoMITA44Claude Code, Codex
科研可视化工具XiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA240Claude Code, Codex
math-modelingXiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA83Claude Code, Codex
math-modelingXiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA83Claude Code, Codex
DOCX工具XiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA49Claude Code, Codex
LaTeX工具XiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA46Claude Code, Codex
pdfXiaoMaColtAI/math-modeling-skillSkill2.0kyesterdaynoneA92Claude Code, Codex