refresh-manifestlisted
Install: claude install-skill reghis86/context-forge
## What This Does
Runs `bash ${CLAUDE_PLUGIN_ROOT}/core/scripts/tools/refresh-manifest.sh` to regenerate lightweight shadow manifests. Reads `config/manifest-repos.json` (relative to plugin root) to discover target repositories, their absolute paths, and which subdirectories to scan. For each repository, scans TypeScript/JavaScript source files, extracts top-level exports (classes, interfaces, functions, types, enums), and generates `_manifest.lightweight.yaml` with proper metadata. Auto-detects the active IDE by checking whether `.claude` or `.cursor` directories exist. Dual-writes to both `.claude/shadow/` and `.cursor/shadow/` to keep both IDEs in sync. Manifests include YAML `metadata.generated` timestamp for freshness validation.
## When to Use
- Manifest file missing: `<IDE_DIR>/shadow/<repo>/_manifest.lightweight.yaml` not found
- Symbol lookups return stale or incorrect results
- Large refactor completed (new files/classes added to top-level exports)
- `validate-manifest.sh` reports STALE or MISSING verdict
## How to Use
Step 1: Run refresh-manifest.
```bash
bash ${CLAUDE_PLUGIN_ROOT}/core/scripts/tools/refresh-manifest.sh
```
Optional flags:
- `--repo <repo>` — regenerate for a specific repository only
- `--force` — skip staleness check and always regenerate
Step 2: Verify output shows `[MANIFEST GENERATED]` with FRESH verdict.
Step 3: Proceed with symbol lookups via shadow-lookup skill.
## Output Format
```
=== REFRESH MANIFEST ===
Config: config/manifest