context-harvest

context-harvest is a skill for Claude Code, Codex from scroogy-dev/scroogy-agent-skills. It costs 95 tokens per session (3,921 once invoked), scanned A, original, Apache-2.0.

A guide for collecting contracts, domain knowledge, and decision records from sources outside the code. It turns that context into documents under an .ai directory.

In plain words
What is it for?
Use it to harvest project context, create contract and domain documents, record architecture decisions, and link those documents to a code map.
Why use it?
It keeps important requirements and decisions available to developers without mixing them into source code.

Skill for Claude CodeCodex

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

Good fit Use it to harvest project context, create contract and domain documents, record architecture decisions, and link those documents to a code map.

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

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 context-harvest

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/context-harvest"><img src="https://agentmods.dev/badge/skills/scroogy-dev/scroogy-agent-skills/context-harvest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,921 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.00095 $0.03921
Opus 5.5 $0.00038 $0.01568
Sonnet 5.5 $0.00019 $0.00784
Haiku 4.5 $0.00010 $0.00392

Measured 7d ago against content hash 3af3a0a141e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-harvest 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/run-tests.sh), 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.

context-harvest/SKILL.md · 270 lines

How it starts

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

개요

소스코드 바깥에 존재하는 What(계약, 명세)과 Why(정책, 의사결정)를 외부 소스에서 수집·증류하여 .ai/30_contract/, .ai/40_domain/, .ai/50_adr/ 문서로 만드는 스킬입니다.

code-map과의 관계

code-map과 context-harvest는 쌍을 이루는 스킬입니다.

스킬 역할 대상 영역
code-map SSoT 색인(소스코드 How 또는 원본 문서 파일 지도) 60_codebase/
context-harvest 소스코드 바깥의 What + Why를 수집·증류 30_contract/, 40_domain/, 50_adr/
/context-harvest        →  30_contract/, 40_domain/, 50_adr/ 문서 생성
/code-map --local sync  →  새로 생긴 30/40/50 문서를 60_codebase/에서 교차 참조 연결

관련 skill

  • ai-workspace (권장): .ai/ 디렉토리 구조를 활용합니다. 없으면 필요한 디렉토리를 직접 생성합니다.
  • code-map (연동): 이 스킬이 생성한 30/40/50 문서를 60_codebase/에서 교차 참조로 연결합니다.

참조 문서

  • 공통 규칙: .ai/10_rules/context-loading.md — 있으면 따르며, 이미 적재되어 있으면 재로딩하지 않습니다.
  • 스킬 고유 추가 참조:
    • 기존 .ai/30_contract/, .ai/40_domain/, .ai/50_adr/ 문서의 프론트매터 — 증분 수집 판정(last_harvested 비교)
    • .ai/10_rules/writing-principles.md·.ai/10_rules/writing-principles-local.md — 있으면 산출물 작성 원칙으로 참조 (충돌 시 local 우선; 없으면 본문의 "산출물 접기 기준"이 기본값)

핵심 원칙

SSoT 원칙 유지

  • SSoT는 AI-CONTEXT.md 본문 2번째 줄(H1 제목과 그 뒤 빈 줄 제외)의 > SSoT: <값>. 선언을 따른다. 값은 소스 코드 또는 원본 문서(## 프로젝트 도메인 표 ssot_dir 아래 .md 파일. 다른 확장자·첨부의 분류는 repo 문서 규약 파일(.ai/10_rules/document-convention.md)이 정한다)이며 그 외 값은 선언으로 보지 않는다. 선언을 찾지 못하면 소스 코드를 SSoT로 본다. AI-CONTEXT.md는 있는데 선언을 찾지 못해 소스 코드로 진행하면 그 사실을 사용자에게 한 줄로 알리고, ai-workspace update로 선언을 보강할 수 있다고 안내한다. AI-CONTEXT.md가 없으면 알리지 않는다.
  • 이 스킬이 수집하는 정보는 **SSoT에 반영된 사실의 계약/명세(What)와 배경/근거(Why)**이다. 선언이 원본 문서이면 ssot_dir 아래 문서에 반영된 사실이 대상이다.
  • 산출물은 .ai/ 내부 문서이며, 외부 URL은 문서 내 "원본 출처" 섹션에만 기재한다.
  • SSoT에 대응하지 않는 정보(기각된 제안, 미구현 요청 등)는 수집하지 않는다.
  • 퍼블리싱 사본(SSoT에서 파생해 위키·블로그·PDF 등으로 내보낸 사본)은 출처가 아니므로 수집하지 않는다. ## 프로젝트 도메인 표 publish 행에 적힌 위치 아래 자료는 판단 없이 제외한다. 이 행이 없거나 URL이 없는 매체는 "SSoT 내용을 내보낸 사본은 출처로 인용하지 않고 repo 문서를 링크한다"로 판단한다. 판정 기준은 자료의 유래(SSoT에서 파생했는지)이며, 위키·블로그에 있어도 SSoT에서 파생하지 않은 자료는 출처로 수집한다.

증류 원칙

  • 외부 소스의 원문을 그대로 복사하지 않는다.
  • 핵심 결정/정책/근거만 추출하여 간결한 마크다운으로 증류한다.
  • 고객 정보, 개인정보가 포함된 내용은 제거하고 증류한다.

Read the full file on GitHub · 270 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. 7d ago Changed 3af3a0a141e7
  2. 9d ago Changed · +4 lines 02416a72fb90
  3. 11d ago Changed · +3 lines 54c4f1cccfe2
  4. 2mo ago First seen · 263 lines · 95 tokens per session scan A 72c06289216e

Subscribe to this mod's changes

context-harvest is a skill published in the GitHub repository scroogy-dev/scroogy-agent-skills (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 95 tokens to every session and 3,921 once invoked, about $0.0004 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

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens