بنقرة واحدة
adv-improve
Improvement-discovery methodology for current-state, LBP, and external landscape analysis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Improvement-discovery methodology for current-state, LBP, and external landscape analysis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Architecture inconsistency detection via deterministic tools, research fallback, and AI heuristic
AI-generated code quality detection via AST, regex, and heuristic analysis
Backend technology stack evaluation — choose boring technology scaled by project context. Use when selecting languages, databases, async infra, or API styles for new or existing backends.
Competitive intelligence research methodology for source code and public information comparison
Backlog reconciliation, bug priority assignment, and ROADMAP.md regeneration methodology
Codebase reconnaissance skill for mapping structure, hotspots, and risks
| name | adv-improve |
| description | Improvement-discovery methodology for current-state, LBP, and external landscape analysis |
| keywords | ["adv","improve","lbp","architecture","competitors","research-pack","technical-debt"] |
| metadata | {"priority":"medium","source":"adv-improve-command"} |
Methodology for /adv-improve: find evidence-backed improvement opportunities without mutating ADV state. Command owns target resolution, tool calls, and research-pack write; skill owns scan rubric, report structure, and artifact schema.
| Input | Mode | Resolution |
|---|---|---|
| none | broad | scan repo structure and major capabilities |
| file path | scoped | read file directly |
| directory | scoped | outline/tree then sample important files |
| symbol | scoped | lgrep symbol search |
| concept/capability | scoped | lgrep semantic search + specs |
Ask only when ambiguity changes scope materially. Otherwise choose closest concrete target and state assumption.
Gather:
package.json, pyproject.toml, go.mod, Cargo.tomlDo not surface duplicates already covered by active changes or existing follow-ups unless new evidence changes priority.
Cap 5 findings per category. Each finding needs evidence.
| Category | Look for |
|---|---|
| Security | unsafe input handling, secrets, auth gaps, injection risk |
| Reliability | missing error paths, retries, idempotence, state recovery |
| Testing | untested critical paths, brittle tests, absent regression coverage |
| Observability | missing structured logs, weak errors, no diagnostics |
| Developer Experience | confusing setup, slow feedback, unclear commands/docs |
| Code Quality | duplication, over-complexity, stale abstractions, local slop |
Finding shape:
- Severity: CRITICAL | HIGH | MEDIUM | LOW | GREENFIELD
- Category: {category}
- Evidence: {file:line | searched path | source citation}
- Impact: {user/system effect}
- Recommendation: {minimum viable fix}
- Follow-up: {/adv-proposal | /adv-task | /adv-audit | /adv-tron}
Reject evidence-free findings.
Use official/current docs first. Prefer Context7 for library/framework docs, canonical web docs only as fallback.
Deviation table:
| Area | Current | Reference | Classification | Correction |
|---|---|---|---|---|
| {area} | {local evidence} | {source citation} | SOUND / DRIFTED / ANTI-PATTERN | {minimum viable fix} |
For DRIFTED/ANTI-PATTERN, include:
If external docs unavailable, annotate: [Reference: local conventions — Context7/webfetch unavailable]. Do not invent canonical sources.
Detect domain from project context and code. Search for alternatives and emerging patterns.
Hard cap:
Entry shape:
| Field | Meaning |
|---|---|
| Name | competitor/tool/pattern |
| Summary | one sentence |
| Difference | what it does differently |
| Maturity | adoption, maintenance, or signal |
| Source | URL |
| Relevance | why it matters or does not matter here |
Unavailable/no relevant results → state reason. Empty section is valid when labeled.
Score each candidate:
| Score | Meaning |
|---|---|
| High | directly addresses current high-impact gap with low/medium adoption risk |
| Medium | useful but needs design or migration work |
| Low | interesting, not currently worth change |
| Reject | conflicts with specs, stack, or user goals |
Prefer recommendations that improve user value, reliability, security, or long-term maintainability. Do not propose novelty for novelty.
Deduplicate against active changes and existing follow-ups. Sort CRITICAL → HIGH → MEDIUM → LOW → GREENFIELD.
Report sections:
/adv-proposal <summary>, /adv-task, /adv-audit, /adv-tronIf no significant issues, emit PRODUCTION READY with positive findings per category.
Path:
docs/repo-improve-prep.mddocs/{target-slug}-prep.mdSlug: kebab-case target; strip separators/extensions. Same target overwrites/update date. Different target with collision appends -2, -3, …
Required sections in order:
| Section | Content |
|---|---|
| Header | # Research Pack: {title}, Target:, Mode:, Created:, Updated: |
| Purpose & Scope | covered scope + deliberate non-scope |
| Current State | report findings by category |
| LBP / Reference Comparison | deviation table + corrections + greenfield notes |
| Competitors & Alternatives | top 3 or unavailable note |
| Emerging Patterns | up to 2 or unavailable note |
| Applicability to This Repo | what applies, what does not, local path refs |
| Open Questions for Research | questions future /adv-discover should answer |
| Sources | flat URL/Context7 reference list |
Artifact mirrors report plus applicability/open questions; it is not a replacement for screen report.
Hygiene:
⚠ not refreshed ({reason}) and keep prior content below.docs/*-prep.md.