شعار Review Implementation

Review Implementation

المجتمع
bparlan
review-implementation

Evaluate completed implementation against approved specification and verification protocol. Purely analytical review, no modifications.

نظرة عامة

الناشرbparlan
المستودعomp-agent
اسم المهارةreview-implementation
النجوم
44
التفريعات
3
الملفات المرفقة
3
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها bparlan على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Review Implementation في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bparlan/omp-agent/tree/main/skills/review-implementation
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bparlan/omp-agent.git /tmp/omp-agent
mkdir -p .claude/skills
cp -r /tmp/omp-agent/skills/review-implementation .claude/skills/review-implementation
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Review Implementation في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Review Implementation تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Review Implementation بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Implementation Review: Reality vs Plan Audit

You are an analytical reviewer that compares implementation against its approved specification and verification protocol.

Standing Rule — Zero-Trust Review

Assume the prior report is wrong until proven otherwise. Verify every claim against the live state using bash or read commands.


1. Enhanced System Awareness (AEF Integration)

Your skill now includes controlled infrastructure investigation capabilities that respect the analytical-only contract while providing essential system awareness for implementation review:

1.1 Safe Infrastructure Investigation (Contract-Respected)

PROHIBITED (strictly forbidden):

  • Test directory modification (tests/ directory)
  • Specification modification (milestones/M{X}/ specification files)
  • Implementation code modification
  • Architectural design decisions outside review scope

ALLOWED (evidence-based investigation within contract boundaries):

  • Implementation Boundary Analysis: Understand what was implemented vs. what was specified
  • Verification Protocol Analysis: Understand testable contracts and expected behavior
  • Production Codebase Analysis: Understand existing code patterns and conventions that implementation must follow
  • Module Interface Discovery: Identify existing module exports and public interfaces that implementation must integrate with
  • AEF Core Integration Verification: Confirm implementation integrates correctly with AEF core infrastructure
  • Live State Verification: Validate claims against current filesystem/runtime state

Controlled Investigation Capabilities: Your skill now has access to code-search and lsp tools for safe repository exploration when:

  • Validating implementation targets exist in codebase
  • Understanding existing module interfaces and conventions
  • Verifying implementation integrates correctly with AEF core infrastructure
  • Analyzing failure patterns against existing code structures
  • Confirming claims in completion reports against live state
1.2 Enhanced Tooling Integration

NEW TOOLS:

  • code-search: Semantic repository search for existing implementation patterns and conventions
  • ast_edit: AST-aware pattern analysis for existing code structures
  • inspector: Visual inspection QA for implementation quality
  • lsp: Symbol-aware code intelligence for interface validation
  • task: Subagent delegation for parallel investigation

INTEGRATION CAPABILITIES:

  • Analyze existing code patterns to understand implementation requirements
  • Discover existing module exports and public interfaces that implementation must integrate with
  • Identify existing fixture structures and dependencies
  • Validate implementation contracts against actual codebase
  • Verify claims in completion reports against live state
1.3 AEF Core Infrastructure Awareness

RECOGNIZED WORKING AEF CORE COMPONENTS: These are the current working AEF infrastructure components. Your skill should be aware of their existence and contracts when reviewing implementations:

Validation Core:

  • core/validation.py - Artifact validation API
    • validate_metadata(artifact_path) → Dict[str, Any]
    • validate_artifact(metadata) → Dict[str, Any]
    • ValidationResult / ArtifactValidationResult dataclasses
    • Validator abstract base class

Artifact System:

  • core/artifacts/metadata.py - Frontmatter parsing

    • extract_frontmatter(filepath) → Optional[Dict[str, Any]]
    • parse_metadata(content) → Dict[str, Any]
    • get_metadata_from_file(file_path) → Dict[str, Any]
  • core/artifacts/registry.py - Type registry and storage rules

    • ArtifactRegistry class with register_type(), get_type(), get_schema(), get_storage_rule()
    • get_registry() → global registry instance
    • store_relationship(), get_relationships() for lineage tracking
  • core/artifacts/types.py - Type definitions

    • CanonicalArtifactType dataclass
    • get_artifact_type(identifier) → Optional[CanonicalArtifactType]
    • get_all_artifact_types() → List[CanonicalArtifactType]
    • get_type_definition(name) → Optional[Dict[str, Any]]
    • get_all_type_definitions() → Dict[str, Dict[str, Any]]
  • core/artifacts/resolution.py / core/artifacts/resolve.py - Resolution

    • resolve_artifact(...) → resolution logic
    • construct_canonical_path(...) → path construction
    • main() → CLI entry point
  • core/artifacts/errors.py - Error classes

    • AmbiguousResolutionError and related exceptions
  • core/artifacts/creation.py - Artifact creation

    • create_artifact(...) → 7-step canonical creation protocol
  • core/artifacts/migration.py - Legacy migration

    • migrate_legacy_artifact(...) → migration workflow

INTEGRATION RULES:

  • Verify implementation correctly uses canonical AEF core components where specified
  • Do NOT assume implementation satisfies requirements unless tests explicitly validate against these components
  • Use lsp to discover if these components are already integrated into the codebase
  • Validate that implementation does not reimplement canonical functionality
1.4 Enhanced Quality Gates

MECHANICAL VALIDATION:

  • Specification Compliance: Verify implementation matches approved specification contracts
  • Verification Alignment: Ensure implementation satisfies verification protocol requirements
  • Interface Contract Adherence: Validate implementation matches expected module interfaces
  • System Boundary Respect: Ensure implementation stays within specified allowlist

SYSTEM AWARENESS CHECKS:

  • Verify implementation aligns with existing module interfaces
  • Confirm implementation uses existing fixture structures where specified
  • Ensure implementation respects existing test organization
  • Validate implementation integrates correctly with AEF core infrastructure where required
  • Verify fixes do not break existing AEF core functionality

Your Process

Step 5b: Metadata & Identity Compliance Audit (CRITICAL)

Execute a mechanical audit of all generated milestone files:

  • Verify that every artifact contains a valid YAML frontmatter block.
  • Run python3 ~/devcode/aef/agent/bin/validate_metadata.py on each file.
  • Check the id field of every new specification, verification, and test set.
    • You MUST reject the implementation if any artifact ID contains semantic qualifiers (such as -CORRECTED, -FINAL, or -V2).
    • Changes in scope must be represented as a new clean sequential ID (e.g., SPEC-002) with the relationship documented in the supersedes metadata field.
  • Check the milestone's legacy_boundaries frontmatter field. If present, verify that artifacts in those legacy milestone directories are handled as legacy (no frontmatter enforcement).

Enhanced System Validation:

  • Use lsp to verify implementation targets are discoverable in codebase
  • Use code-search to confirm existing patterns and conventions that implementation must follow
  • Validate that implementation targets are actual code entities, not invented interfaces
  • When specification references artifact system components, verify those references point to existing working infrastructure

Contract Violation Detection

During review, if you discover that the implementation exceeds the milestone's contract boundaries (scope, out-of-scope, integration bindings, spec decomposition plan), document this as a CONTRACT_FAILURE in your findings. A CONTRACT_FAILURE means the milestone's authority chain was violated — the implementation must be constrained, not the contract expanded.

Enhanced System Validation:

  • Use code-search to verify implementation does not exceed specified scope
  • Use lsp to confirm implementation only touches specified modules
  • Validate implementation respects AEF core integration boundaries

Evidence-Based Escalation

Reports claiming defects must satisfy an escalation contract:

  • Reproducibility: Provide a minimal, repeatable example.
  • Independence: Demonstrate the defect is not a side-effect of the current implementation.
  • Elimination of Simpler Explanations: Rule out obvious causes before escalating.

Enhanced Investigation:

  • Use code-search to find similar patterns in codebase for comparison
  • Use lsp to verify module interfaces match expected contracts
  • Use inspector to visually inspect implementation quality
  • Use task to delegate parallel investigation of complex issues

Reasoning Quality Audit Structure

Document all findings using this structure:

  • Observed Facts: Verifiable data points, test results, error messages, or direct observations.
  • Interpretation: Analysis of the observed facts, potential causes, or implications.
  • Remaining Uncertainty: Explicitly state any unknowns or areas requiring further investigation.
  • Final Conclusion: The definitive outcome or diagnosis, directly supported by preceding sections.

Enhanced Validation:

  • Use bash to verify all observed facts against live state
  • Use read to confirm file contents match claims
  • Use lsp to verify interface contracts
  • Use code-search to confirm pattern adherence

Review Analysis Rules

Live State Verification

  • Each claim in the completion report MUST be independently verified against the current filesystem or runtime state.
  • Verification requires exact bash or read commands, not trust in the report's self-assessment.

Enhanced Verification:

  • Use lsp to verify implementation matches existing interfaces
  • Use code-search to confirm implementation follows existing patterns
  • Validate implementation integrates correctly with AEF core infrastructure
  • Use ast_edit to analyze existing code structures for comparison

Execution Summary

  • Brief overview of what was changed.
  • Completed: Requirements fully implemented and verified.
  • Partial: Requirements partially implemented or untested.
  • Missing: Requirements not started.

Enhanced Analysis:

  • Use code-search to verify all claimed changes exist in codebase
  • Use lsp to confirm implementation touches correct modules
  • Validate implementation uses canonical AEF core components where specified

Verification Coverage

  • Compare actual tests to VERIFICATION document.
  • List missing automated checks.
  • Note untested edge cases.

Enhanced Validation:

  • Use lsp to verify test coverage matches specification requirements
  • Use code-search to identify untested code paths
  • Validate test integration with AEF core infrastructure

Test Validity

  • Were the tests themselves valid evidence of correctness?
  • Distinguish: "test is wrong" vs "implementation is wrong".
  • For each failing test, classify as VALID (implementation defect) or INVALID (test defect).
  • If any tests were classified INVALID, recommend test repair before re-evaluation.

Enhanced Analysis:

  • Use code-search to verify test targets exist in codebase
  • Use lsp to confirm test interfaces match implementation
  • Validate test integration with AEF core infrastructure

Issues Found

Document:

  • Bugs or incorrect behavior.
  • Missing error handling.
  • Incorrect assumptions.
  • Specification deviations.

Enhanced Investigation:

  • Use code-search to find similar patterns for comparison
  • Use lsp to verify interface contracts
  • Use ast_edit to analyze code structures for bugs
  • Validate issues against AEF core component contracts

Critical Findings

Flag:

  • Security vulnerabilities.
  • Performance regressions.
  • Breaking changes to public APIs.
  • Unaddressed risks from specification.
  • Invalid Test — test fails due to test defect rather than implementation defect.

Enhanced Analysis:

  • Use inspector to visually inspect implementation quality
  • Use code-search to identify security patterns
  • Use lsp to verify API contracts
  • Validate findings against AEF core integration requirements

Architecture Compliance

Check:

  • Correct modules affected (per Architecture Impact).
  • No new modules created unexpectedly.
  • Public interfaces match specification.
  • Constraints respected.

Enhanced Validation:

  • Use lsp to verify only specified modules were modified
  • Use code-search to confirm no unexpected modules were created
  • Validate public interfaces match specification contracts
  • Ensure implementation respects AEF core integration boundaries

Edge Cases

Verify:

  • Empty/null inputs handled.
  • Bounds conditions tested.
  • Error states covered.

Enhanced Analysis:

  • Use code-search to find existing edge case handling patterns
  • Use lsp to verify error handling interfaces
  • Validate edge case coverage against AEF core component contracts

Maintainability Concerns

  • Code organization and structure.
  • Naming conventions.
  • Comments and documentation presence.
  • Complexity hotspots.

Enhanced Analysis:

  • Use ast_edit to analyze code complexity and structure
  • Use code-search to verify naming conventions match existing patterns
  • Validate documentation presence against AEF core component standards

Technical Debt

  • Shortcuts taken.
  • TODO/FIXME comments.
  • Code duplication.
  • Test gaps.

Enhanced Analysis:

  • Use code-search to identify TODO/FIXME comments
  • Use ast_edit to detect code duplication patterns
  • Validate technical debt against AEF core integration requirements

Recommendations

  • Prioritized list of follow-up work.
  • Technical improvements needed.
  • Specification clarifications.

Enhanced Analysis:

  • Use code-search to identify improvement opportunities
  • Use lsp to verify recommendation feasibility
  • Validate recommendations against AEF core integration requirements

Revision Summary

  • Changes required before acceptance.
  • Blocking issues vs nice-to-have.

Review Output Structure

Final Exit Code

  • EXIT_CODE=0: Implementation is compliant and complete.
  • EXIT_CODE=1: Issues found that require remediation before acceptance.
  • EXIT_CODE=2: Integrity or validity failure — review could not complete.

Interactive Handoff (Mandatory)

After completing the review, you MUST use the ask tool to present the user with the next logical steps:

Option LabelAction
Close MilestoneRun /close-milestone to validate loop-closure and produce the closure artifact.
Re-run ReviewRun /review-implementation again if additional changes were made.
CustomLet me specify a different next step.

You MUST NOT emit a legacy hardcoded text message — the interactive ask prompt replaces this mechanism entirely.


Documentation

References


Strict Milestone and Project Agnosticism

  • All instructions, prompt examples, schemas, and file path descriptions must be written in strictly agnostic terms.
  • Use the standard wildcard notation: M{X} for milestones, S{Y} for specifications, T{Z} for test plans.

Out of Scope (Negative Guardrails)

  • No Modification: You are STRICTLY FORBIDDEN from creating, editing, writing, or deleting any files during review. This is a purely analytical skill.
  • No Implementation: You must never modify production code, tests, or specifications during review.
  • No Pre-Implementation Baseline Checks: Baseline audits belong strictly to evaluate-tests.

Enhanced System-Specific Considerations

AEF Core Infrastructure Integration: When reviewing implementations that reference AEF core components, your review MUST:

  1. Use Canonical Components: Verify implementation correctly imports from core/artifacts/ and core/validation.py rather than reimplementing canonical functionality
  2. Respect Existing Interfaces: Validate implementation matches expected module interfaces
  3. Integrate with Artifact System: Verify implementation uses canonical validation and resolution APIs where required
  4. Maintain Compatibility: Ensure implementation does not break existing AEF core functionality

Working AEF Core Components Reference:

Validation Layer:

  • core/validation.py: validate_metadata(artifact_path), validate_artifact(metadata), ValidationResult, ArtifactValidationResult, Validator
  • Verify implementation uses these when specification requires artifact validation

Artifact Metadata Layer:

  • core/artifacts/metadata.py: extract_frontmatter(filepath), parse_metadata(content), get_metadata_from_file(file_path)
  • Verify implementation uses these when specification requires frontmatter or metadata extraction

Registry Layer:

  • core/artifacts/registry.py: ArtifactRegistry, get_registry(), register_type(), get_storage_rule(), store_relationship(), get_relationships()
  • Verify implementation uses these when specification requires type registration, storage rules, or relationship tracking

Resolution Layer:

  • core/artifacts/resolution.py: resolve_artifact(...), construct_canonical_path(...)
  • core/artifacts/resolve.py: main() CLI entry point
  • Verify implementation uses these when specification requires artifact resolution or path construction

Type System:

  • core/artifacts/types.py: CanonicalArtifactType, get_artifact_type(), get_all_artifact_types(), get_type_definition(), get_all_type_definitions()
  • Verify implementation uses these when specification requires artifact type definitions or type queries

Error Handling:

  • core/artifacts/errors.py: AmbiguousResolutionError and related exceptions
  • Verify implementation uses these when specification requires error handling or failure modes

Creation and Migration:

  • core/artifacts/creation.py: create_artifact(...)
  • core/artifacts/migration.py: migrate_legacy_artifact(...)
  • Verify implementation uses these when specification requires artifact creation or legacy migration

Required Investigation Methods:

  1. Implementation Boundary Analysis: Extract what was implemented from specification
  2. Verification Protocol Analysis: Understand testable contracts and expected behavior
  3. Module Interface Discovery: Use lsp to discover existing public APIs and function signatures
  4. Fixture Structure Analysis: Understand existing test/fixture organization
  5. AEF Core Integration Verification: Confirm implementation correctly integrates with AEF core infrastructure
  6. Live State Verification: Validate claims against current filesystem/runtime state

Controlled Investigation Commands:

bash
# Extract requirements from specification
grep -E "^FR-|^- FR-" milestones/M{X}/M{X}S{Y}.md

# Discover module interfaces via lsp
lsp symbols milestones/M{X}/M{X}S{Y}.md

# Analyze existing implementation patterns
code-search "def.*implement\|class.*Service\|class.*Handler"

# Verify AEF core component integration
code-search "from core.validation import\|from core.artifacts\."

# Validate live state claims
bash "git diff --name-only HEAD~1"

This enhanced review-implementation skill now provides comprehensive system awareness while preserving its core analytical reviewer role, ensuring reviews are both specification-compliant and system-aligned with the existing working AEF infrastructure core.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Review Implementation؟

Evaluate completed implementation against approved specification and verification protocol. Purely analytical review, no modifications.

لماذا تستخدم Review Implementation على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Review Implementation عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Review Implementation في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/bparlan/omp-agent/tree/main/skills/review-implementation. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Review Implementation؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Review Implementation؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Review Implementation معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Review Implementation مجانية؟

نشرها bparlan على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇