factory-codebase-inventory

Check a centralized codebase inventory registry before creating new code artifacts.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/e2its/myrmion-AI-factory --skill factory-codebase-inventory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: factory-codebase-inventory
Source: https://github.com/e2its/myrmion-AI-factory/tree/main/.claude/skills/factory-codebase-inventory
Command: npx skills add https://github.com/e2its/myrmion-AI-factory --skill factory-codebase-inventory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, and includes scripts (resource) components.

What problem does it solve?

When multiple development agents or team members work on the same codebase, it is common to create duplicate services, utilities, or components without realizing they already exist, leading to technical debt and wasted development effort. This skill solves that problem by enforcing a centralized Codebase Inventory Protocol (CIP) that requires all agents to check for existing artifacts before creating new ones.

Core Features & Use Cases

  • 4-Criteria Artifact Matching: Detects exact matches, same-domain overlaps, near-duplicates, and name-similar artifacts in the codebase inventory to flag potential redundancy.
  • CIP Canary Gate: Catches post-context-summarization duplicate creation attempts before files are written, preventing DRY violations caused by LLM memory loss during long workflows.
  • Inventory Drift Detection: Automatically identifies stale inventory entries where file paths no longer match disk state, or planned artifacts that have already been implemented, keeping the inventory accurate.
  • Reuse Decision Protocol (RDR): Guides agents to reuse, extend, or create new artifacts with mandatory justifications for new creations, reducing redundant work across the team.
  • Use Case: For example, when an implementation agent is about to create a new UserService in the auth module, the skill first checks the inventory, finds an existing matching service, and prompts the agent to reuse it instead of building a duplicate.

Quick Start

Use the factory-codebase-inventory skill to check for existing matching artifacts before creating any new code component.

Frequently Asked Questions about factory-codebase-inventory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent duplicate code artifacts when multiple development agents work on the same codebase?

Prevent duplicate code artifacts by enforcing a centralized codebase inventory registry that requires all agents to check for existing matches before creating new components. This cross-agent DRY check covers blueprint, implementation, codesign, and setup phases.

How does inventory drift detection work for stale codebase artifacts?

Inventory drift detection works by automatically identifying stale codebase inventory entries where file paths no longer match disk state or planned artifacts that have already been implemented, keeping the registry accurate and current.

Why do AI agents create duplicate code components after long workflow context summarization?

AI agents create duplicate code due to LLM memory loss during long workflows. A CIP Canary gate catches post-context-summarization duplicate creation attempts before files are written, preventing DRY violations caused by lost context.

What is the best way to enforce artifact reuse decisions across a software development team?

The best way to enforce artifact reuse is applying a Reuse Decision Protocol that guides agents to reuse, extend, or create new artifacts with mandatory justifications for new creations, reducing redundant work across the team.

Do I need Python3 to run codebase inventory drift detection and cross-agent DRY checks?

Yes, you need Python3 installed as a dependency to run the scripts that power codebase inventory drift detection, cross-agent DRY checks, and artifact reuse validation across your software development lifecycle.