本文へ移動
cccskills
無料GitHub で公開

scan-ctx

Use when: assessing how much context a deployed agent profile consumes before real work starts.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Context Budget Perspective (CTX)

Measures the context budget a deployed agent pays every session before real work starts. Assigns a score from 0.0 to 1.0 across two dimensions.

Scope

This perspective scans this repository's own agent-profile authoring layout — agents/profiles/<id>-workspace/. It does not parse or score any composed/deployed profile format: Claude Code and Cursor compose Markdown, Codex composes a per-agent .toml file. Measuring the pre-composition Markdown source files is a deliberate scope boundary, not a gap — a project without this repo's own agents/profiles/ layout has no ctx signal to measure and scores a neutral 1.0 rather than being penalized.

Dimensions

File size — How many lines does an agent's composed profile cost every session?

  • Sums line counts across a workspace's fixed set of source files: AGENTS.md, IDENTITY.md, ROUTING.md, SOUL.md, TOOLS.md. MEMORY.md is excluded — memory is per-session state, not fixed startup cost.
  • Score = max(0, min(1, 1 - (lines - 300) / 1500))
  • Under 300 lines = 1.0 (clean); 1,800 lines = 0.0 (at limit)

Skill count — How many skills does an agent's manifest merge in?

  • Counts entries in agent.manifest.json's skills array for that workspace.
  • Score = max(0, min(1, 1 - (skillCount - 5) / 10))
  • 5 or fewer merged skills = 1.0; 15+ = 0.0

Scoring

ctx_score = (file_size + skill_count) / 2

When a repo has multiple agent workspaces, each dimension is averaged across all workspaces found under agents/profiles/.

Score interpretation:

  • 0.9–1.0 Agent profiles are lean — startup cost is low and skill surface is focused
  • 0.7–0.9 Some profiles are getting heavy — worth a trim before they compound
  • 0.5–0.7 Meaningful context tax on every session — plan a reduction pass
  • 0.0–0.5 Startup cost or skill sprawl is likely degrading reliability — prioritise trimming

Tasks Generated

FindingPriority
Composed profile > 800 lineshigh
Composed profile > 300 lines (≤800)medium
Manifest declares > 8 merged skillsmedium

Out of Scope

  • Enforcing context budgets in CI (future work)
  • Deciding what to trim from any specific skill or profile — this perspective only measures and surfaces the signal
  • Scoring composed/deployed profile formats (Claude Code Markdown output, Cursor Markdown output, Codex TOML output) — only the pre-composition Markdown source is measured

Agent Analysis Guide

When performing a manual CTX analysis:

  1. Sum lines across a workspace's AGENTS.md, IDENTITY.md, ROUTING.md, SOUL.md, TOOLS.md — flag anything over 300, and treat anything over 800 as high priority
  2. Count the skills array length in that workspace's agent.manifest.json — flag anything over 8
  3. Look for repeated incident narratives, overlapping routing/storage instructions, or conditional protocols that could move behind an explicit reference instead of staying in the always-loaded contract
  4. Recommend consolidating overlapping skills or narrowing routing for rarely-used ones rather than proposing a full rewrite

Output: a ranked list of oversized profiles or skill-heavy manifests, each with the measured value, the dimension it violates, and a recommended remediation.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Universal guardrails loaded by every agent. Defines Verify Before Reporting (VBR), Write-Ahead Log (WAL), and the security baseline. Always-on, role-independent.

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Use when: architecture mode, architect this, ADR, C4, PlantUML, system boundary, design decision, PRD gap, high ambiguity, multiple technical approaches, security architecture, data architecture, integration risk, implementability gap, story ticket, or epic ticket.

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Use when: assumptions audit, audit assumptions, check for hidden assumptions, plan/ticket has ambiguous scope edges, pre-flight before finalizing a ticket, unstated assumptions, or 'what am I assuming'. Surfaces unstated assumptions, ambiguous scope edges, and untested preconditions in a finished plan/ticket/ADR before it is handed to Builder. Optional pass — Architect judges when to apply it; not a mandatory gate on every ticket.

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Use when: Tester needs UI state evidence for VBR, or Builder needs to verify an integration wire is observable end-to-end. Powered by agent-browser MCP — token-efficient browser automation (200–400 tokens/page).

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Writing skill for freelancers and independent consultants. Covers project proposals, bids, client emails, and scope summaries. Leads with the client's problem, not the consultant's background.

日本語の概要は準備中です。原文の説明を表示しています。

Agistra/agistra.dev52026年10月7日 更新

Agistra のスキルをすべて見る

このスキルの問題を報告する