Analyze Repo.prompt
--- name: analyze-repo description: "Analyze a source repository and produce a translation manifest with dependency graph, complexity assessment, and framework mappings." argument-hint: "Specify the repository path to analyze for translation" model: GPT-5.4 (copilot) agent: translation-analyzer tools: [search, read, problems] --- # Analyze Repository for Translation ## Context Analyze the source repository to produce a comprehensive Translation Manifest that will guide the entire translation workflow. ## Source Repository - **Path:** ${input:source_repo_path} - **Source Language:** ${input:source_language} - **Target Language:** ${input:target_language} ## Instructions - Catalog every file with path, language, LOC, role (source, test, config, docs, assets), and whether it needs translation, copy-only, or exclusion - Parse all import/require/use/include statements and build a dependency adjacency list - Detect circular dependencies and topological-sort files into translation layers (Layer 0 = leaf nodes) - Score each file on LOC, cyclomatic complexity, external dependencies, language-specific features, metaprogramming, and concurrency - Identify source frameworks and map to target equivalents (web framework, ORM, test framework, all external dependencies) - Generate `artifacts/plans/translation/manifest.json` with the complete manifest schema - Identify high-risk areas: complex metaprogramming/reflection, platform-specific code, language features with no direct equivalent, large files (>500 LOC) ## Output Format Produce the following deliverables: 1. **File Inventory** — table of every file with path, language, LOC, role, and translation action 2. **Dependency Graph** — adjacency list with topological layers 3. **Complexity Assessment** — per-file scores with risk indicators 4. **Framework Mappings** — source → target package/framework matrix 5. **Translation Manifest** — `artifacts/plans/translation/manifest.json` 6. **Risk Assessment** — high-risk areas with severity and mitigation notes
fill the variables
This prompt has 3 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{input:source_repo_path}{input:source_language}{input:target_language}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo kennedym-ds/copilot_orchestrator (MIT). A "Analyze Repo.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
kennedym-ds/copilot_orchestrator · 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