agentleFS
autohandaiautohandai/community-skills/agentic-development-principles/SKILL.md

agentic-development-principles

Skill14 starsChanged 9 months agoApache-2.0View on GitHub

Universal principles for agentic development when collaborating with AI agents. Defines divide-and-conquer, context management, abstraction level selection, and an automation philosophy. Applicable to all AI coding tools.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    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:

    When starting a collaboration session with an AI agent

    line 20
  2. Distinctive:

    When deciding an approach before starting a complex task

    line 21
  3. Distinctive:

    When establishing a context management strategy

    line 22
  4. Distinctive:

    When reviewing workflows to improve productivity

    line 23
  5. Distinctive:

    When onboarding teammates on how to collaborate with AI

    line 24
  6. Distinctive:

    When applying baseline principles while adopting a new AI tool

    line 25
  7. Distinctive:

    Do not mix multiple topics in a single conversation

    line 79
  8. Distinctive:

    Start a new session for a new topic

    line 80
  9. Distinctive:

    When the conversation gets long, summarize only the essentials and hand them to a new session:

    line 83
  10. Distinctive:

    When the conversation gets long, ask the AI to summarize the current state

    line 107
  11. Distinctive:

    If needed, reset the conversation and restart using HANDOFF.md

    line 108
  12. Distinctive:

    Always back up before changing important data

    line 205
  13. Distinctive:

    Always use plan mode for irreversible work

    line 206
  14. Distinctive:

    Keep working with a bloated context

    line 287
  15. Distinctive:

    Use AI output as-is without verification

    line 289

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

Agentic development principles (Agentic Development Principles)

"AI is the copilot; you are the pilot" AI agents amplify the developer's thinking and take over repetitive work, but final decision-making authority and responsibility always remain with the developer.

When to use this skill

  • When starting a collaboration session with an AI agent
  • When deciding an approach before starting a complex task
  • When establishing a context management strategy
  • When reviewing workflows to improve productivity
  • When onboarding teammates on how to collaborate with AI
  • When applying baseline principles while adopting a new AI tool

Principle 1: Divide and conquer (Divide and Conquer)

Core concept

AI performs much better with small, clear instructions than with large, ambiguous tasks.

How to apply

Wrong exampleRight example
"Build me a login page"1. "Create the login form UI component"
2. "Implement the login API endpoint"
3. "Wire up the authentication logic"
4. "Write test code"
"Optimize the app"1. "Analyze performance bottlenecks"
2. "Optimize database queries"
3. "Reduce frontend bundle size"

Practical pattern: staged implementation

Step 1: Design and validate the model/schema
Step 2: Implement core logic (minimum viable functionality)
Step 3: Connect APIs/interfaces
Step 4: Write and run tests
Step 5: Integrate and refactor

Validation points

  • Can each step be validated independently?
  • If it fails, can you fix only that step?
  • Is the scope clear enough for the AI to understand?

Principle 2: Context is like milk (Context is like Milk)

Core concept

Context (the AI's working memory) should always be kept fresh and compact.

  • Old and irrelevant information reduces AI performance
  • Context drift: mixing multiple topics can reduce performance by up to 39% (research)

Context management strategies

Strategy 1: Single-purpose conversation

Session 1: Work on the authentication system
Session 2: Work on UI components  
Session 3: Write test code
Session 4: DevOps/deployment work
  • Do not mix multiple topics in a single conversation
  • Start a new session for a new topic

Strategy 2: HANDOFF.md technique

When the conversation gets long, summarize only the essentials and hand them to a new session:

# HANDOFF.md

## Completed work
- ✅ Implemented user authentication API
- ✅ Implemented JWT token issuance logic

## Current status
- Working on token refresh logic

## Next tasks
- Implement refresh tokens
- Add logout endpoint

## Tried but failed
- Failed to integrate Redis session store (network issue)

## Cautions
- Watch for conflicts with existing session management code

Strategy 3: Monitor context state

  • When the conversation gets long, ask the AI to summarize the current state
  • If needed, reset the conversation and restart using HANDOFF.md

Strategy 4: Optimization metrics

MetricRecommended valueAction
Conversation lengthKeep to a reasonable levelCreate HANDOFF.md if it gets long
Topic count1 (single purpose)Use a new session for new topics
Active filesOnly what's neededRemove unnecessary context

Principle 3: Choose the right abstraction level

Core concept

Choose an appropriate abstraction level depending on the situation.

ModeDescriptionWhen to use
Vibe CodingHigh level (see only overall structure)Rapid prototyping, idea validation, one-off projects
Deep DiveLow level (go line-by-line)Bug fixes, security review, performance optimization, production code

In practice

When adding a new feature:
1. High abstraction: "Create a user profile page" → understand overall structure
2. Medium abstraction: "Show the validation logic for the profile edit form" → review a specific feature
3. Low abstraction: "Explain why this regex fails email validation" → detailed debugging

Abstraction level selection guide

  • Prototype/PoC: Vibe Coding 80%, Deep Dive 20%
  • Production code: Vibe Coding 30%, Deep Dive 70%
  • Bug fixes: Deep Dive 100%

Principle 4: Automation of automation (Automation of Automation)

Core concept

If you've repeated the same task 3+ times → find a way to automate it
And the automation process itself → automate that too

Automation level evolution

LevelApproachExample
1Manual copy/pasteAI output → copy into terminal
2Terminal integrationUse AI tools directly
3Voice inputVoice transcription system
4Automate repeated instructionsUse project config files
5Workflow automationCustom commands/scripts
6Automate decisionsUse Skills
7Enforce rules automaticallyUse hooks/guardrails

Checklist: identify automation targets

  • Do you run the same command 3+ times?
  • Do you repeat the same explanations?
  • Do you often write the same code patterns?
  • Do you repeat the same validation procedures?

Automation priority

  1. High: tasks repeated daily
  2. Medium: tasks repeated weekly (or more)
  3. Low: tasks repeated about once a month

Principle 5: Balance caution and speed (Plan vs Execute)

Plan mode (Plan Mode)

Analyze without executing; execute only after review/approval

When to use:

  • A complex task you're doing for the first time
  • A large refactor spanning multiple files
  • Architecture changes
  • Database migrations
  • Hard-to-roll-back work

Execute mode (Execute Mode)

AI directly edits code and runs commands

When to use:

  • Simple, clear tasks
  • Work with well-validated patterns
  • Sandbox/container environments
  • Easy-to-revert work

Recommended ratio

  • Plan mode: 70-90% (use as the default)
  • Execute mode: 10-30% (only in safe environments)

Safety principles

  • ⚠️ Auto-running dangerous commands only in isolated environments
  • Always back up before changing important data
  • Always use plan mode for irreversible work

Principle 6: Verify and reflect (Verify and Reflect)

How to verify output

  1. Write test code
    "Write tests for this function. Include edge cases too."
  2. Visual review
    • Review changed files via diff
    • Revert unintended changes
  3. Draft PR / code review
    "Create a draft PR for these changes"
  4. Ask for self-verification
    "Review the code you just generated again.
    Validate every claim, and summarize the verification results in a table at the end."

Verification checklist

  • Does the code work as intended?
  • Are edge cases handled?
  • Are there any security vulnerabilities?
  • Are tests sufficient?
  • Are there any performance issues?

Reflection questions

  • What did you learn in this session?
  • What could you do better next time?
  • Were there repetitive tasks you could automate?

Quick Reference

Six principles summary

PrincipleCorePractice
1. Divide and conquerSmall, clear unitsSplit into independently verifiable steps
2. Context managementKeep it freshSingle-purpose conversations, HANDOFF.md
3. Abstraction choiceDepth per situationAdjust Vibe ↔ Deep Dive
4. Automation²Remove repetitionAutomate after 3 repetitions
5. Plan/execute balanceCaution firstPlan 70-90%, execute 10-30%
6. Verification/reflectionCheck outputsTests, reviews, self-verification

Mastery rule

"To truly master AI tools, you need to use them enough"

Learning by using is key - theory alone is not enough; you need to experience different situations in real projects.

Golden rule

When instructing an AI:
1. Clearly (Specific)
2. Step-by-step (Step-by-step)
3. Verifiable (Verifiable)

Best Practices

DO (recommended)

  • Focus on one clear goal per conversation
  • Regularly clean up context
  • Plan before complex work
  • Always verify outputs
  • Automate repetitive work

DON'T (prohibited)

  • Handle multiple unrelated tasks in one conversation
  • Keep working with a bloated context
  • Auto-run dangerous commands carelessly
  • Use AI output as-is without verification
  • Repeat the same work without automating it

References

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.