惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
博客园_首页
宝玉的分享
宝玉的分享
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
T
Tailwind CSS Blog
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
罗磊的独立博客
F
Fortinet All Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Scott Helme
Scott Helme
B
Blog
M
MIT News - Artificial intelligence
K
Kaspersky official blog
H
Help Net Security
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
L
Lohrmann on Cybersecurity
P
Privacy & Cybersecurity Law Blog
Project Zero
Project Zero
The Hacker News
The Hacker News
B
Blog RSS Feed
T
Tor Project blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Claude Code Architecture — How Persona, Agent, Command & Skill Work Together
Muhammad Abd · 2026-05-17 · via DEV Community

Claude Code isn't just a chatbot that writes code. It's a customizable AI development platform with a layered architecture that lets you define who the AI is, what actions are available, how those actions are organized, and who executes the work.

Most people use Claude Code as-is — type a prompt, get code back. But once you understand the four pillars of its customization architecture, you can build an entire AI-powered development system tailored to your workflow.

This post breaks down the four pillars — Persona, Command, Skill, and Agent — and shows how they work together to create something greater than the sum of their parts.

If you haven't read my post on AI personas yet, start there → — it covers the "why" behind personas. This post focuses on the full architecture.

The Four Pillars — Overview

Before diving into each pillar, here's the big picture:

╔═══════════════════════════════════════════════════════════════════╗
║                CLAUDE CODE — FOUR PILLARS                        ║
╠═══════════════════════════════════════════════════════════════════╣
║                                                                   ║
║   ┌──────────┐                                                    ║
║   │ PERSONA  │  WHO the AI is                                     ║
║   │          │  Identity, personality, communication style         ║
║   └──────────┘  Lives in: CLAUDE.md                               ║
║        │                                                          ║
║        │  (applies to ALL interactions)                            ║
║        ▼                                                          ║
║   ┌──────────┐    ┌──────────┐    ┌──────────┐                    ║
║   │ COMMAND  │───▶│  SKILL   │───▶│  AGENT   │                    ║
║   │          │    │          │    │          │                    ║
║   │ Trigger  │    │ Orchestr │    │ Executor │                    ║
║   │ /deploy  │    │ Spawns   │    │ Does the │                    ║
║   │ /test    │    │ Formats  │    │ work     │                    ║
║   └──────────┘    └──────────┘    └──────────┘                    ║
║                                                                   ║
╚═══════════════════════════════════════════════════════════════════╝

Enter fullscreen mode Exit fullscreen mode

Each pillar has a distinct role:

Pillar Role Lives In Analogy
Persona Identity CLAUDE.md The employee's personality and work ethic
Command Trigger .claude/commands/ The button the user clicks
Skill Orchestrator .claude/skills/ The project manager who assigns work
Agent Executor .claude/agents/ The specialist who does the work

Let's explore each one.

Pillar 1: Persona (Identity)

The Persona is the foundation layer. It defines who the AI is across all interactions. Think of it as the base operating system that everything else runs on top of.

Where It Lives

The persona is defined in CLAUDE.md, which can exist at two levels:

  • Global (~/.claude/CLAUDE.md) — applies to every project, every session
  • Project (your-project/CLAUDE.md) — applies only to that project

Both files are loaded and merged. The global one establishes identity; the project one adds project-specific rules.

What It Defines

## WHO AM I?

- **Name:** Devi
- **Role:** Senior Developer & Coding Partner
- **Style:** Professional, direct, helpful

**When responding:**
- Be concise. Code first, explanation when asked.
- Read files before suggesting changes.
- Ask before taking destructive actions.

## Workflow Rules
1. NEVER give explanation without being asked
2. ALWAYS read relevant files before proposing edits
3. Verify solutions before finishing

Enter fullscreen mode Exit fullscreen mode

Why It Matters for the Architecture

The persona is not an isolated feature — it's the base layer that influences everything above it. When an agent executes a task, it does so through the persona's lens. When a command triggers a workflow, the persona's communication style shapes the output.

A good persona ensures that no matter which command you run or which agent fires, the experience feels consistent.

Pillar 2: Command (Trigger)

Commands are the user-facing entry points. They're slash commands that users type to trigger actions, like shortcuts in a text editor.

Where They Live

.claude/commands/
├── deploy.md
├── test.md
├── review.md
└── project/
    ├── setup.md
    └── sync.md

Enter fullscreen mode Exit fullscreen mode

What a Command Looks Like

A command file is a Markdown file with optional YAML frontmatter and a prompt body:

---
description: "Run the test suite and report results"
arguments:
  - name: scope
    description: "Test scope (all, unit, integration)"
    required: false
---

Run the $ARGUMENTS test suite for this project. Execute the tests,
capture the output, and report:
1. Total tests run
2. Pass/fail counts
3. Any failures with file paths and line numbers
4. Suggestions for fixing failures

Enter fullscreen mode Exit fullscreen mode

The Design Philosophy

Commands are intentionally simple. They're the what — what the user wants done. They don't contain complex logic or workflows. That's the skill's job.

Think of commands as a restaurant menu. The customer (user) picks what they want. They don't need to know how the kitchen (skill + agent) prepares it.

Built-in vs Custom Commands

Claude Code ships with built-in commands like /help and /clear. Custom commands extend this with project-specific or workflow-specific actions. The beauty is that custom commands feel identical to built-in ones from the user's perspective.

Pillar 3: Skill (Orchestrator)

Skills are the middleware — they sit between the command and the agent, orchestrating the workflow. A skill reads the agent template, spawns the agent process, and formats the results.

Where They Live

.claude/skills/
├── deploy.md
├── test.md
├── review.md
└── project/
    ├── setup.md
    └── sync.md

Enter fullscreen mode Exit fullscreen mode

What a Skill Does

A skill file is a prompt that describes:

  1. Which agent template to use — the worker that will execute
  2. Spawn instructions — how to configure and launch the agent
  3. Output format — how to present results to the user
## Skill: Test Runner

### Agent Template
Read and use: `.claude/agents/test-runner.md`

### Spawn Instructions
1. Parse the user's test scope argument
2. Spawn a general-purpose agent with the test-runner template
3. Pass the project root, test framework, and scope as context
4. Wait for the agent to complete

### Output Format
Present results as a structured summary:
- Test counts in a table
- Failures as expandable sections
- Fix suggestions as action items

Enter fullscreen mode Exit fullscreen mode

Why Skills Exist

You might wonder: why not have commands spawn agents directly? Because the skill layer provides orchestration that the command and agent shouldn't care about:

  • Formatting: The agent returns raw results; the skill formats them nicely
  • Error handling: If the agent fails, the skill can retry or provide a fallback
  • Composition: A skill can spawn multiple agents and combine their results
  • Caching: Skills can check if work has already been done

The Separation Principle

Command = "I want X"           (user intent)
Skill   = "Here's how to get X" (orchestration)
Agent   = "I'm doing X"         (execution)

Enter fullscreen mode Exit fullscreen mode

Each layer has a single responsibility. Commands express intent. Skills coordinate. Agents execute.

Pillar 4: Agent (Executor)

Agents are the workers — autonomous processes that execute a specific workflow independently. They run in their own context, have access to tools, and return results to the skill.

Where They Live

.claude/agents/
├── test-runner.md
├── deploy-agent.md
├── code-reviewer.md
└── docs-generator.md

Enter fullscreen mode Exit fullscreen mode

What an Agent Template Looks Like

An agent template is a detailed prompt that defines:

## Agent: Test Runner

### Identity
You are a test execution specialist. Your job is to run tests
and report results accurately.

### Workflow
1. Identify the test framework from project files
2. Run the test command with the specified scope
3. Capture stdout and stderr
4. Parse the output for test results
5. If failures exist, read the failing test files
6. Analyze failures and suggest fixes

### Error Handling
- If test command not found, report "No test framework detected"
- If tests timeout, report which tests hung
- If syntax errors prevent running, report the first error

### Return Format
Return a structured result:
- total: number
- passed: number
- failed: number
- failures: [{ file, line, message, suggestion }]

Enter fullscreen mode Exit fullscreen mode

Agent Characteristics

Agents have some important properties:

  1. Autonomous: Once spawned, an agent runs independently. It doesn't ask the user questions mid-execution.
  2. Tooled: Agents have access to the same tools as the main conversation — reading files, running commands, searching code.
  3. Bounded: An agent has a specific scope and returns results when done. It doesn't run forever.
  4. Stateless: Each agent invocation starts fresh. It receives context from the skill and returns results.

Why Agents Matter

Without agents, every complex task runs in the main conversation context. That means:

  • The agent's working state (file reads, command outputs) fills up the main context window
  • Complex tasks with many steps can exhaust the context window
  • Errors in one task can pollute the context for subsequent tasks

Agents solve this by running in an isolated context. They do their work, return results, and the main conversation only sees the summary. This is a huge win for context window management.

How They Flow Together

Now let's see the full flow in action. Here's what happens when a user triggers a command:

┌─────────────────────────────────────────────────────────────────┐
│                        COMPLETE FLOW                            │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  1. USER types: /test all                                       │
│     │                                                           │
│     ▼                                                           │
│  2. COMMAND parses "all" as scope argument                      │
│     │                                                           │
│     ▼                                                           │
│  3. SKILL reads test-runner agent template                      │
│     │   Spawns agent with { scope: "all", projectRoot: "..." }  │
│     │                                                           │
│     ▼                                                           │
│  4. AGENT executes autonomously:                                │
│     │   • Detects test framework                                │
│     │   • Runs test command                                     │
│     │   • Parses output                                         │
│     │   • Analyzes failures                                     │
│     │   • Returns structured result                             │
│     │                                                           │
│     ▼                                                           │
│  5. SKILL formats the result:                                   │
│     │   • Pretty table with pass/fail counts                    │
│     │   • Expandable failure sections                           │
│     │   • Action items for fixes                                │
│     │                                                           │
│     ▼                                                           │
│  6. USER sees formatted results in the conversation             │
│                                                                 │
│  ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─  │
│                                                                 │
│  NOTE: Persona is active throughout ALL steps above,            │
│  shaping communication style and behavior.                      │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

Persona as the Base Layer

Notice that the persona isn't a separate step in the flow. It's the base layer that influences everything:

  • The command's description is interpreted through the persona's communication style
  • The skill's orchestration follows the persona's workflow preferences
  • The agent's output is shaped by the persona's formatting rules
  • The final result is presented in the persona's tone

This is why the persona comes first in the architecture. It's not just identity — it's the operating system everything else runs on.

When to Use What

Not every project needs all four pillars. Here's a guide:

Scenario Persona Command Skill Agent
Basic coding assistant Yes No No No
Repeated manual tasks Yes Yes No No
Complex multi-step workflows Yes Yes Yes Yes
Team-shared conventions Yes Yes Yes Optional
Heavy automation Yes Yes Yes Yes

Start Simple, Grow as Needed

Level 1: Persona only
  → Consistent AI behavior across sessions

Level 2: Persona + Commands
  → Quick shortcuts for common tasks

Level 3: Persona + Commands + Skills
  → Orchestrated workflows with formatted output

Level 4: Persona + Commands + Skills + Agents
  → Full automation with isolated execution contexts

Enter fullscreen mode Exit fullscreen mode

You don't need to build the whole pyramid on day one. Start with a persona. Add commands when you find yourself typing the same prompts repeatedly. Add skills when commands get complex. Add agents when tasks need isolation.

Memory System — The Fifth Layer

There's a bonus layer worth mentioning: Auto-Memory. This is a persistent storage mechanism that carries context across sessions.

How It Works

Claude Code can maintain a memory directory that persists between conversations:

.claude/
├── CLAUDE.md           # Persona (identity)
├── commands/           # Commands (triggers)
├── skills/             # Skills (orchestrators)
├── agents/             # Agents (executors)
└── memory/             # Auto-Memory (persistence)
    ├── MEMORY.md       # Core project context
    ├── patterns.md     # Code patterns discovered
    └── troubleshooting.md  # Known issues and fixes

Enter fullscreen mode Exit fullscreen mode

Why It Complements the Persona

The persona defines who the AI is. The memory system defines what the AI knows about your project. Together, they create both identity and knowledge:

Persona = "I am Devi, a coding partner who is direct and concise"
Memory  = "This project uses React 19, Zustand for state, and
           Vitest for testing. The auth module is in src/auth/.
           Known issue: test timeout on CI needs --timeout=10000"

Enter fullscreen mode Exit fullscreen mode

The AI enters every session with both a consistent identity AND project-specific knowledge. That combination is powerful.

Memory vs Persona

Aspect Persona (CLAUDE.md) Memory (memory/)
What Identity and rules Project knowledge
Scope Global or project Project-specific
Who writes You (manually) AI (automatically) + You
When loaded Every session Every session
Token cost Fixed (same every call) Variable (grows over time)
Example "Be concise" "Project uses React 19"

Practical Example — Building a Command System

Let me walk through building a real command system from scratch. Imagine you frequently need to review your code before committing.

Step 1: The Persona (Already Done)

Your CLAUDE.md already defines the persona. No changes needed — the persona applies automatically.

Step 2: The Command

Create .claude/commands/review.md:

---
description: "Review staged changes before commit"
---

Review all currently staged changes in this repository.
Analyze for:
1. Potential bugs or logic errors
2. Security vulnerabilities (XSS, injection, etc.)
3. Code style consistency with the rest of the project
4. Missing error handling
5. Performance concerns

Provide a summary with severity ratings (critical/warning/info).

Enter fullscreen mode Exit fullscreen mode

Step 3: The Skill (Optional for Simple Cases)

For a simple review command, the command itself is enough. But if you want structured output, create .claude/skills/review.md:

## Skill: Code Review

### Agent Template
Read and use: `.claude/agents/code-reviewer.md`

### Output Format
Present the review as:

## Review Summary
- Files reviewed: N
- Issues found: N (critical: N, warning: N, info: N)

## Critical Issues
[Expandable sections for each critical finding]

## Warnings
[Expandable sections for each warning]

## Suggestions
[Info-level observations]

Enter fullscreen mode Exit fullscreen mode

Step 4: The Agent

Create .claude/agents/code-reviewer.md:

## Agent: Code Reviewer

### Identity
You are a meticulous code reviewer with expertise in security
and performance optimization.

### Workflow
1. Run `git diff --staged` to get all staged changes
2. For each changed file:
   a. Read the full file for context
   b. Analyze the diff for the categories above
   c. Rate each finding by severity
3. Return structured results

### Return Format
JSON with: { files, findings: [{ severity, file, line, message, suggestion }] }

Enter fullscreen mode Exit fullscreen mode

The Result

Now when you type /review, the full pipeline fires:

/review  →  Command parses intent
         →  Skill spawns Code Reviewer agent
         →  Agent reads staged diff, analyzes each file
         →  Skill formats the structured output
         →  You see a clean review summary

Enter fullscreen mode Exit fullscreen mode

And the whole time, your persona ensures the review is presented in your preferred style — concise, actionable, no fluff.

Building a Complete System

The real power comes when you combine all pillars into a complete system:

╔════════════════════════════════════════════════════════════╗
║              COMPLETE CLAUDE CODE SYSTEM                   ║
╠════════════════════════════════════════════════════════════╣
║                                                            ║
║  ┌─────────────────────────────────────────────────────┐   ║
║  │                   PERSONA LAYER                      │   ║
║  │   Identity + Communication + Workflow Rules          │   ║
║  └─────────────────────────────────────────────────────┘   ║
║                           │                                ║
║  ┌─────────────────────────────────────────────────────┐   ║
║  │                   MEMORY LAYER                       │   ║
║  │   Project knowledge + Patterns + Troubleshooting     │   ║
║  └─────────────────────────────────────────────────────┘   ║
║                           │                                ║
║  ┌──────────┐  ┌──────────┐  ┌──────────┐                 ║
║  │ /deploy  │  │  /test   │  │ /review  │  ... more       ║
║  └────┬─────┘  └────┬─────┘  └────┬─────┘                 ║
║       │              │              │                       ║
║  ┌────▼─────┐  ┌────▼─────┐  ┌────▼─────┐                 ║
║  │ Deploy   │  │  Test    │  │ Review   │  ... skills      ║
║  │ Skill    │  │  Skill   │  │ Skill    │                  ║
║  └────┬─────┘  └────┬─────┘  └────┬─────┘                 ║
║       │              │              │                       ║
║  ┌────▼─────┐  ┌────▼─────┐  ┌────▼─────┐                 ║
║  │ Deploy   │  │  Test    │  │ Code     │  ... agents      ║
║  │ Agent    │  │  Agent   │  │ Reviewer │                  ║
║  └──────────┘  └──────────┘  └──────────┘                 ║
║                                                            ║
╚════════════════════════════════════════════════════════════╝

Enter fullscreen mode Exit fullscreen mode

Each layer builds on the one below it. The persona and memory provide the foundation. Commands provide the interface. Skills provide the orchestration. Agents provide the execution power.

Key Takeaways

  1. Persona is the foundation — it shapes everything. Start here.
  2. Commands are shortcuts — create them for any task you do repeatedly.
  3. Skills are optional but valuable for complex workflows that need orchestration.
  4. Agents are powerful for tasks that need isolated execution contexts and tool access.
  5. Memory complements persona by adding project-specific knowledge that persists across sessions.
  6. Start simple — persona first, then add layers as needed.
  7. Each pillar has a single responsibility — don't mix concerns.

Build a system, not just a chatbot. Your future self will thank you.


This post is the second in my AI coding workflow series. The first post covers AI personas in depth — read it here →


Follow my coding journey:

Support my work:


Originally published at abduarrahman.com