Loading...
Loading...
This skill should be used when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls. Implements Manus-style file-based planning with task_plan.md, findings.md, and progress.md.
npx skill4agent add eyadsibai/ltk planning-with-filesContext Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
Anything important gets written to disk.task_plan.mdfindings.mdprogress.md| File | Purpose | When to Update |
|---|---|---|
| Phases, progress, decisions | After each phase |
| Research, discoveries | After ANY discovery |
| Session log, test results | Throughout session |
task_plan.md"After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."
in_progresscomplete## Errors Encountered
| Error | Attempt | Resolution |
|-------|---------|------------|
| FileNotFoundError | 1 | Created default config |
| API timeout | 2 | Added retry logic |if action_failed:
next_action != same_actionATTEMPT 1: Diagnose & Fix
-> Read error carefully
-> Identify root cause
-> Apply targeted fix
ATTEMPT 2: Alternative Approach
-> Same error? Try different method
-> Different tool? Different library?
-> NEVER repeat exact same failing action
ATTEMPT 3: Broader Rethink
-> Question assumptions
-> Search for solutions
-> Consider updating the plan
AFTER 3 FAILURES: Escalate to User
-> Explain what you tried
-> Share the specific error
-> Ask for guidance| Situation | Action | Reason |
|---|---|---|
| Just wrote a file | DON'T read | Content still in context |
| Viewed image/PDF | Write findings NOW | Multimodal -> text before lost |
| Browser returned data | Write to file | Screenshots don't persist |
| Starting new phase | Read plan/findings | Re-orient if context stale |
| Error occurred | Read relevant file | Need current state to fix |
| Resuming after gap | Read all planning files | Recover state |
| Question | Answer Source |
|---|---|
| Where am I? | Current phase in task_plan.md |
| Where am I going? | Remaining phases |
| What's the goal? | Goal statement in plan |
| What have I learned? | findings.md |
| What have I done? | progress.md |
# Task Plan: [Task Name]
## Goal
[Clear statement of what we're trying to accomplish]
## Phases
### Phase 1: [Name]
- Status: pending | in_progress | complete
- Tasks:
- [ ] Task 1
- [ ] Task 2
### Phase 2: [Name]
- Status: pending
- Tasks:
- [ ] Task 1
## Errors Encountered
| Error | Attempt | Resolution |
|-------|---------|------------|
## Decisions Made
| Decision | Rationale | Date |
|----------|-----------|------|
## Files Modified
- [file1.py] - [what changed]# Research Findings
## [Topic 1]
- Key insight 1
- Key insight 2
- Source: [where found]
## [Topic 2]
- Finding 1
- Finding 2# Session Progress
## [Date/Time]
- Started: [task]
- Completed: [what]
- Blocked on: [if any]
- Next: [what's next]| Don't | Do Instead |
|---|---|
| Use TodoWrite for persistence | Create task_plan.md file |
| State goals once and forget | Re-read plan before decisions |
| Hide errors and retry silently | Log errors to plan file |
| Stuff everything in context | Store large content in files |
| Start executing immediately | Create plan file FIRST |
| Repeat failed actions | Track attempts, mutate approach |