apm-9-recover

Reconstructs an APM agent's working context after conversation compaction or loss.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/ZK-Theory/TDL --skill apm-9-recover-zk-theory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apm-9-recover
Source: https://github.com/ZK-Theory/TDL/tree/main/.agents/skills/apm-9-recover
Command: npx skills add https://github.com/ZK-Theory/TDL --skill apm-9-recover-zk-theory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When an AI agent's conversation is compacted, cleared, or lost, it loses its working context and cannot resume its role. This Skill rebuilds that context so Manager and Worker agents in the APM framework can continue their duties without starting over. ## Core Features & Use Cases - Role Detection: Accepts an optional role argument (manager or a Worker identifier) or infers the role from conversation context, asking the user when ambiguous. - Context Reconstruction: Re-reads the agent's initiation command and every referenced guide, skill, and project artifact to rebuild procedural knowledge and project state. - Recovery Logging: Records the recovery event in the Tracker (Manager) or next Task Report (Worker) without incrementing the instance number. - Use Case: After an automatic compaction wipes a frontend-agent's conversation mid-project, invoke this command with the worker role so the agent reloads its initiation documents, inspects the codebase state, and resumes its assigned tasks. ## Quick Start Recover my working context as the manager agent after the conversation was compacted.

Frequently Asked Questions about apm-9-recover

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

FAQPage Schema
How do I recover an AI agent's context after conversation compaction?

Invoke the recover command with an optional role argument such as manager or a Worker identifier. The agent re-reads its initiation command and all referenced documents, explores project artifacts, and resumes its duties as the same instance.

What happens if I run the recover command without a role argument?

The agent infers its role from conversation context, such as a compaction summary or a recent initiation. If the context does not reveal the role, the agent asks the user to specify whether it is the Manager or a Worker.

Does recovering an APM agent increment its instance number?

No, recovery does not increment the instance number. The agent continues as the same instance, and during a later Handoff it notes which portions of working context were reconstructed rather than first-hand.

Can a Planner agent use the APM recover command?

No, the recover command applies only to Manager and Worker agents. Planner or non-APM agents should concisely decline and take no action when the command is invoked.

Why is reading only the initiation command not enough for recovery?

The initiation command references guides, skills, and project artifacts containing the procedural knowledge and project state needed for recovery. The agent must read every referenced document and inspect the current codebase to fully reconstruct context.