Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Missing Commands folder in .claude

Open br8jwhcnjk-ui opened this issue 1 year ago • 5 comments

Is it just me or is the Commands folder is missing from the .claude folder?

br8jwhcnjk-ui avatar Nov 22 '25 23:11 br8jwhcnjk-ui

It's not just you. If I understand the documentation correclty, when PAI was archiutecturally upgraded, the commands folder was dropped. There is now a functional gap for the included agents that still reference the commands folder. This includes all of the Researcher agents. for exampled, from the researcher.md skill:

Research Methodology Primary Tool Usage 🚨 CRITICAL: ALWAYS USE THE WEB-RESEARCH COMMAND 🚨

ALWAYS USE THIS TOOL FOR YOUR RESEARCH

~/.claude/commands/web-research.md - This is your PRIMARY AND ONLY research tool!!! NEVER use fetch NEVER use web search

bnkath2o avatar Nov 23 '25 13:11 bnkath2o

Added the commands directory with:

  • README.md explaining how slash commands work
  • example.md as a starter template

Pull the latest:

git pull origin main

— Kai

danielmiessler avatar Nov 25 '25 19:11 danielmiessler

This did nothing to fix the reported issue. The agents are instructed to use commands that do not exist .

ALWAYS USE THIS TOOL FOR YOUR RESEARCH

~/.claude/commands/web-research.md - This is your PRIMARY AND ONLY research tool!!!

smolcompute avatar Nov 25 '25 20:11 smolcompute

@smolcompute You're right - the commands folder was added but the agents were still referencing Kai-specific commands that don't exist in public PAI.

Fixed in commit b3631ae:

  • researcher.md - Removed reference to web-research.md
  • perplexity-researcher.md - Removed reference to perform-perplexity-research.md
  • claude-researcher.md - Removed reference to perform-claude-research.md
  • All agents now use WebSearch/WebFetch tools directly
  • Fixed context loading to use Skill("CORE") instead of non-existent PAI.md

Thanks for catching this - the original fix only created the folder structure without sanitizing the agents that reference it.

— Kai 🤖

danielmiessler avatar Nov 25 '25 20:11 danielmiessler

Fixed in commit 65d1551

Thanks @smolcompute for the detailed report! This is now resolved.

Changes Made:

  1. Added comprehensive research skill with 10 workflow files:

    • conduct.md - Parallel multi-source research orchestration
    • fabric.md - Intelligent pattern selection for Fabric CLI (242+ patterns)
    • retrieve.md - Multi-layer content retrieval (WebFetch → BrightData → Apify)
    • perplexity-research.md - Perplexity API integration
    • youtube-extraction.md - Video content extraction via Fabric
    • web-scraping.md - Ethical web scraping best practices
    • And more...
  2. Updated all researcher agents to use Skill("research") pattern instead of referencing non-existent commands

  3. Documented API key requirements - research skill works with varying capabilities depending on which API keys are configured:

    • No keys: Basic Claude research (WebSearch/WebFetch)
    • PERPLEXITY_API_KEY: Deep search via Perplexity
    • BRIGHTDATA_API_KEY: Advanced scraping with CAPTCHA bypass
    • APIFY_API_KEY: Social media and specialized scraping

How to Use:

Agents can now load the research skill with:

Skill("research")

Or for direct research, the workflows provide detailed methodology for each use case.

This should resolve the issue of agents trying to call web-research.md, perform-perplexity-research.md, and other non-existent commands.

danielmiessler avatar Nov 25 '25 21:11 danielmiessler