agentleFS
nodealchemynodealchemy/powernode-platform/worker/CLAUDE.md

powernode-platform / worker

CLAUDE.md4 starsChanged 18 days agoMITView on GitHub

Sidekiq standalone worker for Powernode. Query MCP before non-trivial worker changes (full protocol: conventions/mcp-first-workflow.md), using domain-specific queries: Query MCP first. Use these files when MCP returns no relevant results: Full tool catalog with parameters: reference/auto/mcp-tools.md. To load a tool's schema in a session, use ToolSearch (e.g. select:mcp__powernode__platform_search_knowledge).

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All AI execution jobs MUST include AiSuspensionCheckConcern for kill switch compliance (and call bail_if_ai_suspended!

    line 11

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Worker CLAUDE.md

Sidekiq standalone worker for Powernode.

Critical Rules

  • Jobs inherit from BaseJob, implement execute() method
  • API-only communication with server (mTLS for /api/v1/internal/*; ActionCable WebSocket still uses JWT)
  • Rails.logger - no puts/print
  • # frozen_string_literal: true pragma required
  • All AI execution jobs MUST include AiSuspensionCheckConcern for kill switch compliance (and call bail_if_ai_suspended! first in execute(); enforced by scripts/pattern-validation.sh for any executor — recall guidance-kill-switch-compliance)

MCP-First Worker Workflow

Query MCP before non-trivial worker changes (full protocol: conventions/mcp-first-workflow.md), using domain-specific queries:

Before Creating/Modifying

TaskMCP Query
New job classplatform.discover_skills + platform.search_knowledge query: "background job patterns"
MCP-related jobsplatform.search_knowledge query: "MCP job"
Billing/payment jobsplatform.search_knowledge query: "billing jobs"
Job error handlingplatform.query_learnings query: "Sidekiq error handling" — known failure modes
Job schedulingplatform.query_learnings query: "job scheduling" — cron patterns, race conditions
Autonomy maintenance jobsplatform.search_knowledge query: "autonomy jobs" — escalation timeout, goal maintenance, observation pipeline

During Work

  • Before new job patterns: platform.query_learnings — check for established patterns and known pitfalls (retry storms, deadlocks, API timeouts)
  • Before job chain dependencies: platform.search_knowledge_graph — understand existing job orchestration flows
  • Before API calls to server: platform.search_knowledge query: "worker API communication" — verify endpoint contracts

After Work (MANDATORY for non-trivial changes)

Change typeContribution
New job patternplatform.create_learning category: pattern — document the approach
Job failure fixplatform.create_learning category: failure_mode — root cause + fix
Job chain/workflowplatform.extract_to_knowledge_graph — job dependencies, trigger conditions
Reusable job utilityplatform.create_skill — codify the approach

Context-Aware Documentation (file fallback)

Query MCP first. Use these files when MCP returns no relevant results:

When working onMCP QueryFile Fallback
app/jobs/*platform.search_knowledge query: "background jobs"guides/backend.md
MCP jobsplatform.search_knowledge query: "MCP tools"concepts/mcp-and-tools.md

MCP Tool Reference

Full tool catalog with parameters: reference/auto/mcp-tools.md. To load a tool's schema in a session, use ToolSearch (e.g. select:mcp__powernode__platform_search_knowledge).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.