nahisaho/musubi/agent-assistant
Claude Code and agent skill by nahisaho/musubi
- community
Checking that the SKILL.md file is still in the repository.
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
Install
npx vskill@latest install nahisaho/musubi/agent-assistantSKILL.md
The same SKILL.md was published earlier as nahisaho/musubi/agent-assistant.
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:
MemoryCondenser (src/managers/memory-condenser.js)
Compresses long session history to fit context window:
- NoopCondenser: No compression (for short sessions)
- RecentEventsCondenser: Keep first and recent events
- LLMCondenser: AI-summarized compression
- AmortizedCondenser: Gradual compression with summaries
Usage Example:
AgentMemoryManager (src/managers/agent-memory.js)
Extracts and persists learnings from agent sessions:
- Command Patterns: Detected CLI and tool commands
- Best Practices: Coding and architecture patterns
- Error Solutions: Error-resolution mappings
- Project Structure: Codebase knowledge
CLI Command (v3.5.0 NEW):
Usage Example:
3. Diagnostic Workflow
When Agent is Stuck
- Collect Session Events: Gather recent agent actions, messages, and errors
- Run StuckDetector: Identify the stuck pattern
- Apply Remediation:
- Repeating Action: Suggest alternative approach
- Error Loop: Analyze error and propose fix
- Monologue: Request concrete action
- Context Overflow: Condense memory
- Stage Oscillation: Review workflow state
Memory Management
- Check Memory Size: Estimate token usage
- Select Condenser: Choose appropriate strategy
- Condense: Compress session history
- Validate: Ensure critical context preserved
Learning Extraction
- Collect Session Events: Full session history
- Run Extraction: Identify command, practice, error, structure patterns
- Review: Present learnings for confirmation
- Save: Persist to project memory store
4. Integration with Other Skills
- Orchestrator: Report stuck status, request re-planning
- Quality Assurance: Include learning extraction in session reviews
- Software Developer: Apply extracted patterns in implementations
Project Memory (Steering System)
CRITICAL: Always check steering files before starting any task
Before beginning work, ALWAYS read the following files if they exist in the steering/ directory:
- `steering/structure.md` (English) - Architecture patterns
- `steering/tech.md` (English) - Technology stack
- `steering/product.md` (English) - Business context
5. CLI Integration
6. Output Format
Stuck Detection Report
Learning Extraction Report
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/templates/agents/claude-code/skills/agent-assistant/SKILL.md
Popularity
- Repository stars
- 77
- Repository forks
- 7
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nahisaho/musubi/agent-assistant)