- Home
- Skills
- Code Quality & Review
- Harvest Advisor Skill
Harvest Advisor Skill
by Yotao
Benchmark repository architecture and business logic against reference repos with evidence-backed advisory reports.
Free
Harvest Advisor Skill
Example session with this skill installed
Compare my current project's auth flow in src/auth against the reference at https://github.com/example/auth-lib to see if I should adopt their JWT handling.
- Read your context and instructions
- Compiled the harvest advisor
I have completed the comparison between your local src/auth and the example/auth-lib reference repository. The analysis focused on JWT validation and token refreshing behaviors.
Harvest Advisor Report: Auth Flow Comparison
Architecture and Flow
The user repository handles JWT validation via middleware, while the reference repository uses a centralized strategy pattern.
Figure 1: Architecture Overview
- User Repo: Middleware-based (
E-01), local secret management (E-02). - Reference Repo: Strategy-based (
E-03), extensible provider interface (E-04).
| Feature | User Repo (Baseline) | Reference Repo (Target) | Gap Analysis |
|---|---|---|---|
| Validation | Inline middleware | Centralized Strategy | Reference is more modular |
| Refreshing | Manual endpoint | Automated interceptor | Reference reduces client logic |
Candidate Decisions
- H-01 (Adopt): Centralized Strategy Pattern. High benefit for scaling multiple auth providers. Link:
E-03. - H-02 (Adapt): Automated Token Interceptor. Needs reshaping to fit current Axios instance. Link:
E-05. - H-03 (Watch): OAuth2 Social Login. Reference has it, but it is out of current project scope.
Pending Approval
- Task (H-01): Refactor
src/auth/middleware.tsintosrc/auth/strategies/jwt.strategy.ts.- Acceptance: Middleware calls the strategy; tests pass with existing mocks.
- Rollback: Revert to commit
a1b2c3d.
- Task (H-02): Implement interceptor logic in
src/api/client.ts.
Next steps
- Review the full report at
harvest-advisor-reports/run-20231027-1430/report.json. - Approve Task H-01 to begin the strategy pattern refactor.
- Provide access to
src/apiif you wish to proceed with H-02 analysis.
Connects securely to your tools. The creator never sees your data.
About this skill
Identify high-signal architectural patterns and workflow gaps by benchmarking your codebase against any reference repository. This skill provides a read-only, evidence-backed advisory report that compares business behaviors across repos without the risk of blind porting or unauthorized code execution. It traces entry points, data flows, and state changes to highlight where your implementation deviates from a target standard or a competitor's approach.
What it does
- Architectural benchmarking traces comparable business behaviors across two repositories to identify structural differences.
- Evidence-based reporting assigns unique IDs to every claim, linking recommendations directly to specific file paths and line ranges.
- Decision classification categorizes findings into specific actions: adopt, adapt, reject, or watch, based on stack fit and maintenance cost.
- Visual flow comparison generates architecture diagrams and key flow maps to visualize how different repos handle the same logic.
- Handoff preparation produces detailed tasks with acceptance criteria and rollback plans for approved architectural changes.
How it works
- Define scope by designating one local repository and one external reference repository for read-only analysis.
- Trace behaviors by mapping business logic from entry points to implementation, marking code as documented, reachable, or enabled.
- Analyze gaps to evaluate benefits and architectural impact, distinguishing between facts and inferences.
- Deliver report by saving a structured JSON or Markdown document to a local
harvest-advisor-reports/directory.
Frameworks & tools
This skill uses static analysis to inspect repository structures, Mermaid for Markdown diagrams, and standard JSON for structured reporting. It is stack-agnostic and works with any language.
Why this beats prompting it yourself
Manual prompting often misses deep architectural traces or hallucinates connections between unrelated files. This skill enforces a strict evidence-tracking system (E-01, H-01) and a read-only boundary that prevents accidental code mutation or execution during analysis.
Use cases
- Compare local API routing patterns against an industry-standard reference repo.
- Audit a legacy module to identify gaps compared to a modern implementation.
- Evaluate the maintenance cost of adopting a specific third-party design pattern.
- Benchmarking internal microservices against a designated "golden" repository.
Known limitations
Does not execute code, run tests, or perform dynamic analysis. Limited to two repositories per comparison. Requires a designated reference repository.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
Node.js
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.