---
name: adopt-74b28424f2cb
description: Onboard an existing repository into Product Factory OS.
argument-hint: repository path
license: MIT
metadata:
  category: workflow
  tags: [adoption, existing-project, bootstrap]
  effort: medium
  side_effect: project-metadata-write
  explicit_invocation: false
---

# Adopt

Add Product Factory OS context to an existing project.

## Process

1. Inspect repository structure, stack, scripts, and docs.
2. Detect whether the project has PFO adoption files:
   - `AGENTS.md`
   - `CODEX.md`
   - `.codex-memory/MEMORY.md`
   - `.codex-memory/STATE.json`
   - `.pfo/` contracts
3. Create or update `AGENTS.md` and `CODEX.md` with marked Product Factory OS sections.
4. Create `.codex-memory/`, `.pfo/`, and initial state.
5. Create existing-project alias indexes only from targets that already exist:
   - `MASTER_CONTEXT.md`
   - `ARCHITECTURE.md`
   - `TASKS.md`
   - `PROGRESS.md`
   - `TESTING.md`
6. Record stack, available commands, known docs, and current task route in `.codex-memory/STATE.json`.
7. Add missing Product Compiler docs only when needed for the requested change:
   - `PRODUCT_BLUEPRINT.md`
   - `BUILD_PLAN.md`
   - `EXECUTION_GRAPH.md`
8. Route to `/task` after adoption.

## Existing Project State

Use the existing-project state path:

```text
EXISTING_PROJECT_DETECTED
  -> ADOPTION_REQUIRED
  -> ADOPTED
  -> EXISTING_PROJECT_ANALYZED
  -> TASK_CLASSIFIED
```

## Self-validation

Before final output, verify:

- Route, side-effect, and confirmation requirements match metadata.
- Required artifacts or read-only result are explicit.
- Verification, blockers, and next route are stated.

## Rules

- Marker-based idempotency: re-running should not duplicate sections.
- Do not reverse-engineer huge docs without user approval.
- Do not alter application behavior.
- Do not overwrite existing project-local instructions; append/update marked PFO sections.
- Do not skip `.codex-memory/STATE.json`.
- Do not create alias/index files that point to absent Product Compiler docs.
- Do not start major implementation until the existing project has been analyzed and the task route is classified.


---
Source attribution: hihol-labs
Original project: https://github.com/hihol-labs/product-factory-os/blob/12085574c27f20c24d12937569e928ea706f309f/skills/adopt/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 hihol-labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.




# Mega AI Hub resource metadata

Creator / publisher: hihol-labs
Original project: https://github.com/hihol-labs/product-factory-os/blob/12085574c27f20c24d12937569e928ea706f309f/skills/adopt/SKILL.md
Attribution basis: Source repository record

Fields of work: Product Management, Project & Program Management
Roles: Growth Product Manager, Product Manager, Project Manager
Specialties: Backend
Tools: Product Factory Os
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e2d06b4d23049370b261e13cdb3ee599f5e89f4967e4fe3aac31f0f2c6cb5f3a
