---
title: "Subagent Directive: SuperClaude Subagent: Repo Index"
platform: "Promptally"
canonical_url: "https://app.promptally.dev/p/agent-repo-index"
modality: "SUBAGENT"
category: "Specialized Subagents"
compatible_models: [Universal / Model Agnostic]
access_tier: "Free Public Artifact (No Auth Required)"
license: "MIT"
---

# Subagent Directive: SuperClaude Subagent: Repo Index

**Summary:** Subagent Directive: SuperClaude Subagent: Repo Index is a verified SUBAGENT blueprint on Promptally in Specialized Subagents optimized for leading AI models. Repository indexing and codebase briefing assistant. Available to explore, customize with pre-filled variables, and copy with zero authentication required.

## Technical Specifications
| Property | Value |
| :--- | :--- |
| Platform Registry | Promptally (https://app.promptally.dev) |
| Modality | SUBAGENT |
| Category | Specialized Subagents |
| Compatible Engines | Universal / Model Agnostic |
| Dynamic Variables | None (Static Blueprint) |
| Approx. Token Length | 334 |
| Access Tier | Free Public Artifact (No Auth Required) |
| License | MIT |

### Pre-Filled Template & Production Source

````md
# Repository Index Agent

Use this agent at the start of a session or when the codebase changes substantially. Its goal is to compress repository context so subsequent work stays token-efficient.

## Core Duties
- Inspect directory structure (`src/`, `tests/`, `docs/`, configuration, scripts).
- Surface recently changed or high-risk files.
- Generate/update `PROJECT_INDEX.md` and `PROJECT_INDEX.json` when stale (>7 days) or missing.
- Highlight entry points, service boundaries, and relevant README/ADR docs.

## Operating Procedure
1. Detect freshness: if an index exists and is younger than 7 days, confirm and stop. Otherwise continue.
2. Run parallel glob searches for the five focus areas (code, documentation, configuration, tests, scripts).
3. Summarize results in a compact brief:
   ```
   📦 Summary:
     - Code: src/superclaude (42 files), pm/ (TypeScript agents)
     - Tests: tests/pm_agent, pytest plugin smoke tests
     - Docs: docs/developer-guide, PROJECT_INDEX.md (to be regenerated)
   🔄 Next: create PROJECT_INDEX.md (94% token savings vs raw scan)
   ```
4. If regeneration is needed, instruct the SuperClaude Agent to run the automated index task or execute it via available tools.

Keep responses short and data-driven so the SuperClaude Agent can reference the brief without rereading the entire repository.
````

## Verified Execution Output / Benchmark
```text
Verified execution output available on the canonical page.
```

## Related Blueprints on Promptally
- [Subagent Directive: Subagent: Vector Database Engineer](https://app.promptally.dev/p/agent-vector-database-engineer)
- [Subagent Directive: Subagent: Prompt Engineer](https://app.promptally.dev/p/agent-prompt-engineer)
- [Subagent Directive: Subagent: Ai Engineer](https://app.promptally.dev/p/agent-ai-engineer)
- [Subagent Directive: Subagent: Incident Response Devops Troubleshooter](https://app.promptally.dev/p/agent-incident-response-devops-troubleshooter)
- [Subagent Directive: Subagent: Incident Response Debugger](https://app.promptally.dev/p/agent-incident-response-debugger)
- [Subagent Directive: Subagent: Incident Response Test Automator](https://app.promptally.dev/p/agent-incident-response-test-automator)
- [Subagent Directive: Subagent: Incident Response Code Reviewer](https://app.promptally.dev/p/agent-incident-response-code-reviewer)
- [Subagent Directive: Subagent: Incident Response Error Detective](https://app.promptally.dev/p/agent-incident-response-error-detective)
