home/productivity/repo-scan-prompt

Repo Scan.prompt

GPTClaudeDeepSeek··309 copies·updated 2026-07-14
repo-scan-prompt.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: Summary

when 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