create

A command that creates initial project context documents in `.claude/context/` by examining the current project. These documents give an agent a shared starting description of the codebase.

In plain words
What is it for?
Use it when setting up context for a project, after checking the required date-time rule and project type. If context files already exist, it asks before overwriting them.
Why use it?
It establishes baseline project information so future sessions can work from documented context instead of rediscovering the project each time.

Command for Claude Code

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.

agentmods
npx agentmods add commands/kamiazya/scopes/create
Clone the repo
git clone --depth 1 https://github.com/kamiazya/scopes

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,642 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01642
Opus 5 $0.00000 $0.00821
Sonnet 5 $0.00000 $0.00328
Haiku 4.5 $0.00000 $0.00164

Measured yesterday against content hash b9001ce0c6f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create 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 yesterday.

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.

.claude/commands/context/create.md · 162 lines

How it starts

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

Create Initial Context

This command creates the initial project context documentation in .claude/context/ by analyzing the current project state and establishing comprehensive baseline documentation.

Required Rules

IMPORTANT: Before executing this command, read and follow:

  • .claude/rules/datetime.md - For getting real current date/time

Preflight Checklist

Before proceeding, complete these validation steps. Do not bother the user with preflight checks progress ("I'm not going to ..."). Just do them and move on.

1. Context Directory Check

  • Run: ls -la .claude/context/ 2>/dev/null
  • If directory exists and has files:
    • Count existing files: ls -1 .claude/context/*.md 2>/dev/null | wc -l
    • Ask user: "⚠️ Found {count} existing context files. Overwrite all context? (yes/no)"
    • Only proceed with explicit 'yes' confirmation
    • If user says no, suggest: "Use /context:update to refresh existing context"

2. Project Type Detection

  • Check for project indicators:
    • Node.js: test -f package.json && echo "Node.js project detected"
    • Python: test -f requirements.txt || test -f pyproject.toml && echo "Python project detected"
    • Rust: test -f Cargo.toml && echo "Rust project detected"
    • Go: test -f go.mod && echo "Go project detected"
  • Run: git status 2>/dev/null to confirm this is a git repository
  • If not a git repo, ask: "⚠️ Not a git repository. Continue anyway? (yes/no)"

3. Directory Creation

  • If .claude/ doesn't exist, create it: mkdir -p .claude/context/
  • Verify write permissions: touch .claude/context/.test && rm .claude/context/.test
  • If permission denied, tell user: "❌ Cannot create context directory. Check permissions."

4. Get Current DateTime

  • Run: date -u +"%Y-%m-%dT%H:%M:%SZ"
  • Store this value for use in all context file frontmatter

Instructions

1. Pre-Analysis Validation

  • Confirm project root directory is correct (presence of .git, package.json, etc.)
  • Check for existing documentation that can inform context (README.md, docs/)
  • If README.md doesn't exist, ask user for project description

Read the full file on GitHub · 162 lines

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. yesterday First seen · 162 lines · 0 tokens per session scan A b9001ce0c6f1

Subscribe to this mod's changes

create is a command published in the GitHub repository kamiazya/scopes (2 stars, last pushed 9mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,642 tokens. 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.