agentleFS
AbdullahMalik17AbdullahMalik17/Digital-FTE/.claude/skills/digital-fte-orchestrator/SKILL.md

digital-fte-orchestrator

Skill12 starsChanged 2 months agoMITView on GitHub

Main task processing loop using Claude Code with Ralph Wiggum pattern. Use when running the orchestrator, debugging task processing, configuring approval workflows, or understanding the task lifecycle. NOT when creating individual watchers (use specific watcher skills). NOT when debugging specific integrations (use integration-specific skills).

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when running the orchestrator, debugging task processing, configuring approval workflows, or understanding the task lifecycle.

    line 5
  2. Distinctive:

    NOT when creating individual watchers (use specific watcher skills).

    line 7
  3. Distinctive:

    NOT when debugging specific integrations (use integration-specific skills).

    line 8
  4. Distinctive:

    All sends/posts forced to approval workflow

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Digital FTE Orchestrator Skill

Core task processing engine with Ralph Wiggum loop pattern.

Quick Start

# Normal mode
python src/orchestrator.py

# Process once and exit
python src/orchestrator.py --once

# Dry run (no execution)
python src/orchestrator.py --dry-run

# Via scripts
python scripts/run.py

Task Flow

Needs_Action/ → [Claim] → In_Progress/ → [Process] → Done/
                                       ↓
                              Pending_Approval/ (if sensitive)
                                       ↓
                              [Human approves]
                                       ↓
                                  Approved/ → [Execute] → Done/

Work Zones

The orchestrator operates in different modes based on environment:

ZoneFTE_ROLECapabilities
CloudcloudRead-only, draft creation, analysis
LocallocalFull execution, financial actions, posting

Cloud Zone Restrictions

  • All sends/posts forced to approval workflow
  • Cannot execute financial transactions
  • Cannot post to social media directly
  • Creates drafts for human review

Local Zone Powers

  • Direct execution of approved tasks
  • Financial actions (with audit logging)
  • Social media posting
  • WhatsApp message sending

Claim-by-Move Pattern

Atomic task claiming prevents race conditions:

# ✓ CORRECT - Atomic claim
src = Needs_Action / task_file
dst = In_Progress / task_file
src.rename(dst)  # Atomic on same filesystem

# ✗ WRONG - Race condition possible
if task_file in Needs_Action:  # Another agent could claim here!
    process(task_file)

Skill Routing

The orchestrator routes tasks to appropriate skills based on task type:

Task TypeSkillExample Trigger
email_*sending-emailsEmail draft in queue
whatsapp_*watching-whatsappWhatsApp message request
facebook_*posting-facebookSocial media post
invoice_*managing-odooCreate invoice request
calendar_*managing-calendarMeeting request

Agentic Intelligence

Integrated with src/intelligence/agentic_intelligence.py for:

  • Task complexity scoring
  • Autonomous decision making
  • Learning from outcomes
  • Pattern recognition

Configuration

FlagDefaultDescription
--max-iterations10Max retries per task
--poll-interval30Seconds between polls
--dry-runfalseTest without execution
--oncefalseProcess once and exit

Environment:

FTE_ROLE=local|cloud  # Determines work zone

CEO Briefing Integration

Orchestrator generates briefings via src/reports/ceo_briefing.py:

  • Weekly activity summaries
  • Key metrics and KPIs
  • Task completion rates
  • Pending approvals count

Verification

Run: python scripts/verify.py

Related Skills

  • sending-emails - Email sending patterns
  • watching-whatsapp - WhatsApp monitoring
  • managing-calendar - Calendar management
  • managing-odoo - Accounting operations
  • posting-facebook - Social media posting
  • generating-ceo-briefing - Executive reports

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.