ContextKit: Instructions file for Claude Code

AGENTS.md

ContextKit AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from FlineDev/ContextKit. It costs 9,979 tokens per session, scanned C, original, MIT.

Repository instructions for ContextKit, a system that stores templates and installation scripts for creating customized development environments.

In plain words
What is it for?
Use them when developing ContextKit templates, installation scripts, documentation, or the structure copied into other projects.
Why use it?
They explain that the repository contains source templates and installer logic, so changes are made in the right place and tested through the copy process.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PostToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is FlineDev/ContextKit's own configuration. It tells Claude Code, Codex and OpenCode how to work on ContextKit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ContextKit configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to FlineDev/ContextKit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FlineDev/ContextKit/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/FlineDev/ContextKit

Made for: Claude Code, Codex, OpenCode.

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 ContextKit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/flinedev/contextkit/agents-md/github.svg)](https://agentmods.dev/instructions/flinedev/contextkit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/flinedev/contextkit/agents-md"><img src="https://agentmods.dev/badge/instructions/flinedev/contextkit/agents-md/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 ContextKit AGENTS.md

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/flinedev/contextkit/agents-md"><img src="https://agentmods.dev/badge/instructions/flinedev/contextkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,979 This file is loaded in full into every session.
When invoked 9,979 The same file โ€” it is already loaded in full.
Security scan C 2 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.09979 $0.09979
Opus 5.5 $0.03992 $0.03992
Sonnet 5.5 $0.01996 $0.01996
Haiku 4.5 $0.00998 $0.00998

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

Security

Grade C, and why

ContextKit AGENTS.md scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

โ”œโ”€โ”€ ๐Ÿ“„ install.sh # GLOBAL INSTALLER (users run: curl | sh)

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

โ”œโ”€โ”€ ๐Ÿ“„ install.sh # GLOBAL INSTALLER (users run: curl | sh)
AGENTS.md ยท 1,051 lines

How it starts

The opening of the file, as written. The whole thing โ€” 1,051 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

ContextKit Repository Development Guide

๐Ÿšจ CRITICAL: Meta-Development Context

You are working ON ContextKit, not WITH ContextKit!

This repository contains TEMPLATES and INSTALLATION SCRIPTS that other developers will use. The files here are NOT meant to be executed directly in this repository - they are source templates that get copied to user systems during installation.

๐Ÿง  Understanding the Meta-Architecture

ContextKit is a "template distribution system" - this repository contains:

  1. Templates - Files that get copied and customized during installation
  2. Installation scripts - Logic that copies templates to user systems
  3. Documentation - Explains how the system works

Key Mental Model: Think of this repository as a "template factory" that produces customized development environments for other projects.


๐Ÿ“‚ Complete Repository Structure & Purpose

ContextKit/
โ”œโ”€โ”€ ๐Ÿ“„ install.sh                    # GLOBAL INSTALLER (users run: curl | sh)
โ”œโ”€โ”€ ๐Ÿ“– README.md                     # Public documentation  
โ”œโ”€โ”€ ๐Ÿ“– CLAUDE.md                     # This file - development guidance for AI assistants
โ”œโ”€โ”€ ๐Ÿ“– LICENSE                       # MIT license
โ”œโ”€โ”€ ๐Ÿ“„ CHANGELOG.md                  # Version tracking and migration support
โ””โ”€โ”€ ๐ŸŽฏ Templates/                     # TEMPLATE DISTRIBUTION CENTER
    โ”œโ”€โ”€ Guidelines/                  # โ†’ GLOBAL CODING STANDARDS (copied by install.sh)
    โ”‚   โ”œโ”€โ”€ Swift.md                 # Swift patterns
    โ”‚   โ””โ”€โ”€ SwiftUI.md               # SwiftUI patterns
    โ”œโ”€โ”€ Commands/                    # โ†’ CLAUDE CODE COMMANDS (get copied during /ctxk:proj:init)
    โ”‚   โ”œโ”€โ”€ proj/                    # Project management commands
    โ”‚   โ”‚   โ”œโ”€โ”€ init.md              # Project initialization
    โ”‚   โ”‚   โ”œโ”€โ”€ init-workspace.md    # Workspace configuration
    โ”‚   โ”‚   โ””โ”€โ”€ migrate.md           # Version updates
    โ”‚   โ”œโ”€โ”€ plan/                    # Feature planning workflow
    โ”‚   โ”‚   โ”œโ”€โ”€ 1-spec.md            # Business requirements
    โ”‚   โ”‚   โ”œโ”€โ”€ 2-research-tech.md   # Technical research and architecture
    โ”‚   โ”‚   โ””โ”€โ”€ 3-steps.md           # Implementation breakdown
    โ”‚   โ”œโ”€โ”€ impl/                    # Development workflow
    โ”‚   โ”‚   โ”œโ”€โ”€ start-working.md     # Context-aware development start
    โ”‚   โ”‚   โ”œโ”€โ”€ commit-changes.md    # Smart commit message generation
    โ”‚   โ”‚   โ”œโ”€โ”€ release-app.md       # iOS/macOS App Store releases
    โ”‚   โ”‚   โ””โ”€โ”€ release-package.md   # Swift Package releases
    โ”‚   โ””โ”€โ”€ bckl/                    # Backlog management
    โ”‚       โ”œโ”€โ”€ add-idea.md          # Capture new ideas with evaluation
    โ”‚       โ”œโ”€โ”€ add-bug.md           # Bug report with impact assessment
    โ”‚       โ”œโ”€โ”€ prioritize-ideas.md  # Organize ideas backlog
    โ”‚       โ”œโ”€โ”€ prioritize-bugs.md   # Triage bugs backlog
    โ”‚       โ”œโ”€โ”€ remove-idea.md       # Remove completed ideas from backlog
    โ”‚       โ””โ”€โ”€ remove-bug.md        # Remove fixed bugs from backlog
    โ”œโ”€โ”€ Scripts/                     # โ†’ ALL SCRIPTS (hooks & standalone, get copied during /ctxk:proj:init)
    โ”‚   โ”œโ”€โ”€ AutoFormat.sh           # Auto-format edited Swift files (PostToolUse hook)
    โ”‚   โ”œโ”€โ”€ VersionStatus.sh        # Version checking and status display (SessionStart hook)
    โ”‚   โ””โ”€โ”€ CustomStatusline.sh     # Complete statusline script with 5h-usage tracking and colored progress bars
    โ”œโ”€โ”€ Agents/                      # โ†’ AI ASSISTANTS (get copied during /ctxk:proj:init)
    โ”‚   โ”œโ”€โ”€ build-project.md         # [READY] Execute builds with constitutional compliance checking
    โ”‚   โ”œโ”€โ”€ check-accessibility.md   # [INCOMPLETE] Accessibility compliance validation (VoiceOver, contrast, etc.)
    โ”‚   โ”œโ”€โ”€ check-localization.md    # [INCOMPLETE] Localization readiness audit (String Catalog, cultural adaptation)
    โ”‚   โ”œโ”€โ”€ check-error-handling.md  # [INCOMPLETE] ErrorKit pattern validation and typed throws
    โ”‚   โ”œโ”€โ”€ check-modern-code.md     # [INCOMPLETE] API modernization (Date.now, Duration, async/await)
    โ”‚   โ”œโ”€โ”€ check-code-debt.md       # [INCOMPLETE] Technical debt cleanup and code consolidation
    โ”‚   โ”œโ”€โ”€ run-test-suite.md        # [READY] Execute complete test suite with build validation and structured failure reporting
    โ”‚   โ””โ”€โ”€ run-specific-test.md     # [READY] Execute specific test with build validation and focused failure analysis
    โ”œโ”€โ”€ Features/                    # โ†’ FEATURE TEMPLATES (used by /ctxk:plan:1-spec, /ctxk:plan:quick, etc.)
    โ”‚   โ”œโ”€โ”€ Spec.md                  # Business requirements and user stories (spec-kit methodology)
    โ”‚   โ”œโ”€โ”€ Tech.md                  # Technical architecture and constitutional compliance
    โ”‚   โ”œโ”€โ”€ Steps.md                 # Implementation task breakdown with parallel markers [P]
    โ”‚   โ””โ”€โ”€ Quick.md                 # Quick task planning template with interactive validation
    โ”œโ”€โ”€ Contexts/                    # โ†’ CONTEXT TEMPLATES (used by /ctxk:proj:init and /ctxk:proj:init-workspace)
    โ”‚   โ”œโ”€โ”€ Project.md               # Project-level Context.md with ContextKit configuration
    โ”‚   โ””โ”€โ”€ Workspace.md             # Workspace-level Context.md with client/company overrides
    โ”œโ”€โ”€ Backlog/                     # โ†’ BACKLOG TEMPLATES (used by /ctxk:bckl:add-idea and /ctxk:bckl:add-bug)
    โ”‚   โ”œโ”€โ”€ Ideas-Inbox.md           # New idea capture template with evaluation framework
    โ”‚   โ”œโ”€โ”€ Ideas-Backlog.md         # Prioritized idea backlog template with strategic organization
    โ”‚   โ”œโ”€โ”€ Bugs-Inbox.md            # Bug report intake template with impact assessment
    โ”‚   โ””โ”€โ”€ Bugs-Backlog.md          # Triaged bug backlog template with severity-based organization
    โ”œโ”€โ”€ Formatters/                  # โ†’ CODE STYLE CONFIGS (get copied during /ctxk:proj:init)
    โ”‚   โ”œโ”€โ”€ .swift-format            # Apple swift-format configuration
    โ”‚   โ””โ”€โ”€ .swiftformat             # SwiftFormat (Nick Lockwood) configuration
    โ””โ”€โ”€ settings.json                # โ†’ CLAUDE CODE SETTINGS TEMPLATE

Read the full file on GitHub ยท 1,051 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. 1mo ago First seen ยท 1,051 lines ยท 9,979 tokens per session scan C 761fd8d2e373

Subscribe to this mod's changes

ContextKit AGENTS.md is an instructions file published in the GitHub repository FlineDev/ContextKit (167 stars, last pushed 7mo ago), licensed MIT. It adds 9,979 tokens to every session, about $0.0399 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode ยท 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js ยท 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode ยท 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain ยท 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode ยท 2,731 tokens

vscode model-prompts.instructions.md

Model-specific prompt authoring and registry guidelines.

microsoft/vscode ยท 2,022 tokens