Repo Scan.prompt
# Repo Scan: Auto-Generate KB Drafts
**Scan repository and generate Knowledge Base drafts.**
---
## Instructions for Agent
Scan the repository to auto-generate KB content. Follow strict "don't guess" policy.
---
## Step 1: Scan Repository
Analyze:
- Root directory structure
- Source code organization
- Existing documentation (README, docs/)
- Configuration files (package.json, .csproj, etc.)
- CI/CD setup
---
## Step 2: Extract Information
### Technologies (from config files)
Look for:
- package.json → Node.js dependencies
- .csproj → .NET dependencies
- requirements.txt → Python dependencies
- go.mod → Go dependencies
### Domain Terms (from code and docs)
Extract:
- Variable/class names that look domain-specific
- Comments explaining business concepts
- README content about the project
### Architecture (from structure)
Identify:
- Main components (from folder structure)
- External integrations (from imports/config)
- Data stores (from connection configs)
### Constraints (from tests, docs, code patterns)
Look for:
- Validation patterns
- Error handling approaches
- Security patterns
---
## Step 3: Generate Drafts
Create `temp/kb-drafts/` if it doesn't exist.
Use templates from `.agentify/templates/kb-drafts/` to generate draft files:
| Template | Output |
|----------|--------|
| `project_context.draft.template.md` | `temp/kb-drafts/project_context.draft.md` |
| `domain.draft.template.md` | `temp/kb-drafts/domain.draft.md` |
| `glossary.draft.template.md` | `temp/kb-drafts/glossary.draft.md` |
| `architecture.draft.template.md` | `temp/kb-drafts/architecture.draft.md` |
| `constraints.draft.template.md` | `temp/kb-drafts/constraints.draft.md` |
When filling templates:
- Keep `TBD` when evidence is insufficient
- Include evidence/source paths for non-trivial claims
- Keep `(Draft)` in document titles
---
## Step 4: Summarywhen to use it
Community prompt sourced from the open-source GitHub repo 1kurepin/agentify (MIT). A "Repo Scan.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
1kurepin/agentify · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar