Skip to content
Back to skills

Agent Ops Context Map Weholt Script Cast

ASecurity

Analyze the codebase to create a concise, LLM-optimized structured overview in .agent/map.md.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 3, 2026
ai-agentsgodockergit

Security analysis

A100/100

Scanned June 3, 2026

npx -y skills add majiayu000/claude-skill-registry --skill agent-ops-context-map-weholt-script-cast --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Ops Context Map Weholt Script Cast?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Ops Context Map Weholt Script Cast
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-agent-ops-context-map-weholt-script-cast/badge)](https://www.skillsdirectory.com/skills/majiayu000-agent-ops-context-map-weholt-script-cast)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-ops-context-map
description: "Analyze the codebase to create a concise, LLM-optimized structured overview in .agent/map.md."
category: analysis
invokes: [agent-ops-state]
invoked_by: [agent-ops-constitution, agent-ops-planning]
state_files:
  read: [focus.md, constitution.md]
  write: [map.md, focus.md]
---

# Context Map Generation

## Purpose
Create a high-level, token-efficient overview of the system (`.agent/map.md`) to allow reasoning about the whole project without reading every file.

## Confidence-Based Staleness Thresholds

**Map freshness requirements scale with confidence level:**

| Confidence | Max Age | Refresh Requirement |
|------------|---------|---------------------|
| LOW | 24 hours | MANDATORY before implementation |
| NORMAL | 7 days | RECOMMENDED if significant changes |
| HIGH | 30 days | OPTIONAL |

### Staleness Check

When invoked (or before low confidence work):

```
📍 CONTEXT MAP STALENESS CHECK

Map file: .agent/map.md
Last updated: {date} ({N} days ago)
Confidence level: {confidence}
Max age for confidence: {threshold}

{If stale:}
⚠️ Context map is STALE for {confidence} confidence work.

For LOW confidence, understanding the codebase is critical.
Refreshing map before proceeding...

{If fresh:}
✅ Context map is current ({N} days old, threshold: {threshold} days)
```

### Low Confidence Refresh Requirements

For LOW confidence work:
1. **Check map age** — if > 24 hours, refresh is MANDATORY
2. **Check for recent changes** — git diff since last map update
3. **Partial refresh option** — focus on affected areas if full refresh is expensive

```
🔄 LOW CONFIDENCE CONTEXT MAP REFRESH

Affected areas for {ISSUE-ID}:
- src/services/ (target of changes)
- src/models/ (dependencies)
- tests/services/ (test coverage)

Refresh options:
1. Full refresh (entire codebase)
2. Partial refresh (affected areas only)
3. Skip (NOT RECOMMENDED for low confidence)

Proceeding with partial refresh...
```

## Procedure
1. **Scan** the file structure (limit to 2-3 levels of depth).
2. **Identify** key architectural elements:
   - Critical configuration files (package.json, pyproject.toml, docker-compose, etc.)
   - Entry points (main.py, index.js, App.tsx)
   - Core modules and their responsibilities.
3. **Summarize** architecture patterns and data flow.
4. **Write/Update** `.agent/map.md` with the following structure:
   - **System Overview**: One paragraph summary of purpose and stack.
   - **Key Components**: List of major modules/folders and what they do.
   - **Patterns**: Architectural decisions (e.g., MVC, Repository pattern, Event-driven).
   - **Key Files**: Table of critical files and their specific role.
   - **Last Updated**: Timestamp for staleness tracking.
5. **Constraint**: Keep the file concise (target < 150 lines). It is a map, not a territory.

## Map Header Template

Include this header in map.md for staleness tracking:

```markdown
# Context Map

**Generated**: {YYYY-MM-DD HH:MM}
**Scope**: {full | partial: areas}
**Confidence**: {confidence level that triggered refresh}

---
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.