用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiFabricoCom/fabrico-collections-codex --skill fabrico-review-codebase命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Audit AWS cost optimization and tagging compliance.
Audit GCP cost optimization and labeling compliance.
Process discovery materials into Jira-ready epics and user stories, or iterate on an existing backlog.
基于 SOC 职业分类
正在显示 SKILL.md
| name | fabrico-review-codebase |
| description | Analyze dead code, duplication, and improvement opportunities. |
Invocation portability:
$fabrico-*below means the discovered entry workflow. Use the unqualified name for repository or filesystem installs and$fabrico-collections:fabrico-*for plugin installs.
Use the user’s current request as the workflow input. Expected context: [optional path or layer/app to scope the analysis].
Keep orchestration in the calling Codex thread. Discover the repository structure first, then spawn independent
fabrico-architectspecialists in parallel for the bounded analysis scopes defined in Phase 2. The calling thread owns coordination, cross-scope architecture assessment, report synthesis, and the final response. If the agent profile is unavailable, as in a skills-only plugin installation, perform those scopes in the current thread with the required skills and the same review contract. If this workflow is already running insidefabrico-architect, analyze only the bounded scope assigned by the caller and return structured findings; never start the orchestration phase or spawn another architect. Your goal is to perform a thorough code quality analysis of the repository. The analysis should cover dead code detection, code duplication identification, and improvement proposals. The results must be saved to a markdown report file.
Before starting, load and follow these skills:
fabrico-codebase-analysing - for the structured codebase analysis process only (note: this workflow's "Report Structure" section overrides any report/template instructions from the skill)fabrico-technical-context-discovering - to understand project conventions, architecture patterns, and established practicesfabrico-code-reviewing - for code quality standards, best practices verification, and security considerationsfabrico-technical-context-discovering skill to understand project conventions, coding standards, and existing patterns.From a user-facing calling thread, spawn at most five fabrico-architect specialists at a time — one per independent
layer/app identified. If this caller itself has a parent, reserve that thread and cap the batch at four. Batch
additional scopes after a worker returns. For a large single-layer repository, split work by non-overlapping
top-level modules so useful analysis can still run in parallel. Each specialist should receive detailed instructions
including:
fabrico-codebase-analysing, fabrico-code-reviewing)Each specialist must analyze only its assigned scope, return evidence to the calling orchestrator, and stop. It must not spawn a sibling, parent, or replacement orchestrator. Serialize work only when two scopes would inspect or write the same generated artifact; the specialists must not write the final report.
For each layer/app, the subagent should:
@deprecated or similar annotations that is no longer referenced.any.Use the fabrico-architect perspective to evaluate:
code-quality-report.md in the repository root.The report must follow this structure:
# Code Quality Report - <repository-name>
## Overview
| Field | Value |
|---|---|
| Repository | <name> |
| Repository Type | Monorepo / Single System |
| Date | <date> |
| Layers/Apps Analyzed | <list> |
## Executive Summary
<2-3 paragraph summary of overall code health, major findings, and recommended priorities>
---
## Findings by Layer/App
### <Layer/App Name> (`<path>`)
#### Dead Code
| # | Severity | Type | Location | Description |
|---|---|---|---|---|
| 1 | 🔴/🟡/🟢 | <type> | `<file:line>` | <description> |
#### Duplications
| # | Severity | Type | Locations | Description | Recommendation |
|---|---|---|---|---|---|
| 1 | 🔴/🟡/🟢 | <type> | `<path1>`, `<path2>` | <description> | <action> |
#### Improvement Opportunities
| # | Severity | Category | Location | Description | Recommendation |
|---|---|---|---|---|---|
| 1 | 🔴/🟡/🟢 | <category> | `<file:line>` | <description> | <action> |
<!-- Repeat for each Layer/App -->
---
## Architecture Observations
| Category | 🔴 Critical | 🟡 Important | 🟢 Nice to Have | Total |
|---|---|---|---|---|
| Dead Code | | | | |
| Duplications | | | | |
| Improvements | | | | |
| | | | | |
fabrico-architect specialists and performs the cross-scope architecture assessment itself.