agentleFS
AbdulSamad94AbdulSamad94/Personal-AI-Employee/.agents/skills/reasoning-loop/SKILL.md

reasoning-loop

Skill8 starsChanged 4 months agoMITView on GitHub

Deep reasoning loop for complex multi-step tasks. Use when a task requires planning across multiple files, cross-referencing business goals, making decisions with multiple options, or when the user says "think through this", "make a plan", "figure out what to do", or "analyze my tasks".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read in this exact order:

    line 22
  2. Very specific:

    All files in vault/Needs_Action/

    line 27
  3. Distinctive:

    Write a one-paragraph summary of what you observed.

    line 31
  4. Distinctive:

    Do not form conclusions yet.

    line 32
  5. Distinctive:

    Ask yourself these questions and write answers:

    line 38
  6. Distinctive:

    Document your decision and reasoning for each task.

    line 58
  7. Very specific:

    Create an ESCALATE file in vault/Pending_Approval/ immediately if:

    line 137

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Skill: Reasoning Loop

Purpose

This skill gives you a structured thinking process for complex tasks that require more than simple file processing. Use this when you need to reason carefully before acting.

The OODA Loop (Observe → Orient → Decide → Act)

Phase 1 — OBSERVE

Gather all relevant information before forming any opinion:

Read in this exact order:

  1. vault/Company_Handbook.md
  2. vault/Business_Goals.md
  3. vault/Dashboard.md (current state)
  4. All files in vault/Needs_Action/
  5. Most recent 3 files in vault/Done/ (for context on recent work)
  6. Most recent briefing in vault/Briefings/ (if exists)

Write a one-paragraph summary of what you observed. Do not form conclusions yet.

Phase 2 — ORIENT

Analyze what you observed against your goals:

Ask yourself these questions and write answers:

  • What is the most urgent thing that needs attention right now?
  • What aligns with the goals in Business_Goals.md?
  • What would be risky to do without human approval?
  • What can I handle completely on my own?
  • Are there any patterns? (e.g., same client contacting multiple times)
  • Are there any deadlines I should know about?

Phase 3 — DECIDE

For each task in Needs_Action/, decide ONE of:

DecisionWhen to Use
ACT_NOWSafe, internal, no external action
DRAFT_AND_APPROVENeeds external action (email/post/payment)
ESCALATEToo complex, risky, or ambiguous — flag for human
DEFERLow priority, can wait for next cycle

Document your decision and reasoning for each task.

Phase 4 — ACT

Execute decisions in this priority order:

  1. URGENT items first
  2. ESCALATE items (create flags immediately)
  3. ACT_NOW items (handle directly)
  4. DRAFT_AND_APPROVE items (create drafts + approval files)
  5. DEFER items (add note to Dashboard.md)

Creating Thorough Plan.md Files

For complex tasks, your Plan.md should include:


created: [timestamp] task_source: [filename] reasoning_depth: deep status: in_progress


Situation Analysis

[2-3 sentences describing the full situation]

Stakeholders

  • Who sent this?
  • Who else is affected?
  • Who needs to approve?

Options Considered

Option A: [name]

  • Pros: ...
  • Cons: ...
  • Risk: Low/Medium/High

Option B: [name]

  • Pros: ...
  • Cons: ...
  • Risk: Low/Medium/High

Chosen Approach

[Which option and why]

Execution Steps

  • Step 1
  • Step 2
  • Step 3

Success Criteria

[How will you know this task is complete?]

Fallback Plan

[What to do if the primary approach fails]

Cross-References

  • Related tasks: [list any related files in Needs_Action/ or Done/]
  • Relevant handbook rules: [which rules apply]
  • Business goal alignment: [which goal this serves]

Completion Summary

[Fill this in when done: what actually happened]

When to Stop and Escalate

Create an ESCALATE file in vault/Pending_Approval/ immediately if:

  • You are uncertain about the right action
  • The task involves legal, medical, or financial edge cases
  • The task involves a new client you have no history with
  • The task involves credentials or sensitive personal data
  • Conflicting instructions exist between handbook and the request
  • Any irreversible action with significant consequences

Escalation file format:

type: escalation reason: [why you are escalating] task_source: [original file] your_analysis: [what you figured out so far] question_for_human: [the specific question you need answered]


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.