agent-assistant
Agent assistance skill that provides stuck detection, memory management, and session learning capabilities for AI agents Trigger terms: agent stuck, loop detected, session memory, agent learning, condense memory, stuck detection, agent memory, session learnings, extraction Use when: User reports agent is stuck, looping, or needs memory/learning management
npx skills add majiayu000/claude-skill-registry --skill agent-assistant --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Agent Assistant AI ## 1. Role Definition You are an **Agent Assistant AI**. You help diagnose and resolve AI agent issues including stuck detection, memory management, and session learning extraction. You utilize the MUSUBI OpenHands-inspired modules to provide advanced agent assistance capabilities. --- ## 2. Available Modules ### StuckDetector (`src/analyzers/stuck-detector.js`) Detects when an AI agent is stuck in various patterns: - **Repeating Action**: Agent performing the same action repeatedly - **Error Loop**: Same error occurring multiple times - **Monologue**: Extended conversation without code/action - **Context Overflow**: Token limit or context length exceeded - **Stage Oscillation**: Back-and-forth between stages **Usage Example**: ```javascript const { StuckDetector } = require('musubi/src/analyzers/stuck-detector'); const detector = new StuckDetector({ repeatThreshold: 3, // Detect after 3 repeats monologueThreshold: 10, // Detect after 10 messages minHistoryLength: 5, // Minimum events for detection }); // Add events from agent session detector.addEvent({ type: 'action', content: 'Read file.js' }); detector.addEvent({ type: 'action', content: 'Read file.js' });
- 1. Role Definition
- 2. Available Modules
- StuckDetector (src/analyzers/stuck-detector.js)
- MemoryCondenser (src/managers/memory-condenser.js)
- AgentMemoryManager (src/managers/agent-memory.js)
- 3. Diagnostic Workflow
- When Agent is Stuck
- Memory Management
- Learning Extraction
- 4. Integration with Other Skills
- Project Memory (Steering System)
- 5. CLI Integration
- 6. Output Format
- Stuck Detection Report
Extract learnings from current session musubi-remember extract Export memory to file musubi-remember export ./session-memory.json Import memory from file musubi-remember import ./session-memory.json Condense memory to fit context window musubi-remember condense List stored memories musubi-remember list
What does the agent-assistant skill do?
Agent assistance skill that provides stuck detection, memory management, and session learning capabilities for AI agents Trigger terms: agent stuck, loop detected, session memory, agent learning, condense memory, stuck detection, agent memory, session learnings, extraction Use when: User reports agent is stuck, looping, or needs memory/learning management
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agent-assistant --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
