Skip to content
Merged

Dev #479

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .codex/skills-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "claude-code-skills",
"description": "Production-ready skill packages for AI agents - Marketing, Engineering, Product, C-Level, PM, and RA/QM",
"repository": "https://github.com/alirezarezvani/claude-skills",
"total_skills": 188,
"total_skills": 190,
"skills": [
{
"name": "contract-and-proposal-writer",
Expand Down Expand Up @@ -449,6 +449,12 @@
"category": "engineering-advanced",
"description": "Autonomous experiment loop that optimizes any file by a measurable metric. Inspired by Karpathy's autoresearch. The agent edits a target file, runs a fixed evaluation, keeps improvements (git commit), discards failures (git reset), and loops indefinitely. Use when: user wants to optimize code speed, reduce bundle/image size, improve test pass rate, optimize prompts, improve content quality (headlines, copy, CTR), or run any measurable improvement loop. Requires: a target file, an evaluation command that outputs a metric, and a git repo."
},
{
"name": "behuman",
"source": "../../engineering/behuman",
"category": "engineering-advanced",
"description": "Use when the user wants more human-like AI responses \u2014 less robotic, less listy, more authentic. Triggers: 'behuman', 'be real', 'like a human', 'more human', 'less AI', 'talk like a person', 'mirror mode', 'stop being so AI', or when conversations are emotionally charged (grief, job loss, relationship advice, fear). NOT for technical questions, code generation, or factual lookups."
},
{
"name": "browser-automation",
"source": "../../engineering/browser-automation",
Expand All @@ -467,6 +473,12 @@
"category": "engineering-advanced",
"description": "CI/CD Pipeline Builder"
},
{
"name": "code-tour",
"source": "../../engineering/code-tour",
"category": "engineering-advanced",
"description": "Use when the user asks to create a CodeTour .tour file \u2014 persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: create a tour, onboarding tour, architecture tour, PR review tour, explain how X works, vibe check, RCA tour, contributor guide, or any structured code walkthrough request."
},
{
"name": "codebase-onboarding",
"source": "../../engineering/codebase-onboarding",
Expand Down Expand Up @@ -1151,7 +1163,7 @@
"description": "Software engineering and technical skills"
},
"engineering-advanced": {
"count": 38,
"count": 40,
"source": "../../engineering",
"description": "Advanced engineering skills - agents, RAG, MCP, CI/CD, databases, observability"
},
Expand Down
1 change: 1 addition & 0 deletions .codex/skills/behuman
1 change: 1 addition & 0 deletions .codex/skills/code-tour
204 changes: 204 additions & 0 deletions docs/skills/engineering/behuman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
---
title: "BeHuman — Self-Mirror Consciousness Loop — Agent Skill for Codex & OpenClaw"
description: "Use when the user wants more human-like AI responses — less robotic, less listy, more authentic. Triggers: 'behuman', 'be real', 'like a human'. Agent skill for Claude Code, Codex CLI, Gemini CLI, OpenClaw."
---

# BeHuman — Self-Mirror Consciousness Loop

<div class="page-meta" markdown>
<span class="meta-badge">:material-rocket-launch: Engineering - POWERFUL</span>
<span class="meta-badge">:material-identifier: `behuman`</span>
<span class="meta-badge">:material-github: <a href="https://github.com/alirezarezvani/claude-skills/tree/main/engineering/behuman/SKILL.md">Source</a></span>
</div>

<div class="install-banner" markdown>
<span class="install-label">Install:</span> <code>claude /plugin install engineering-advanced-skills</code>
</div>


> Originally contributed by [voidborne-d](https://github.com/voidborne-d) — enhanced and integrated by the claude-skills team.

Give AI a mirror. Let it talk to itself before responding — like a human does.

## What This Does

Humans have inner dialogue before every response. AI doesn't. This skill adds that missing layer:

1. **Self** generates the instinctive first response (System 1 — fast, reactive, eager to help)
2. **Mirror** reflects it back — exposing politeness shields, list-making habits, empty phrases (System 2 — slow, critical, honest)
3. **Self** revises into a genuinely human response

The result: responses that feel like a real person, not a helpful assistant.

## When To Activate

**Activate automatically when:**
- User explicitly requests it ("behuman", "be real", "mirror mode", etc.)
- The conversation is emotionally charged (breakups, job loss, grief, fear)
- User asks for personal advice (career, relationships, life decisions)
- User asks for writing that should sound human (introductions, emails, social posts)
- User is clearly frustrated with AI-sounding responses

**Do NOT activate for:**
- Pure technical questions ("how do I sort an array")
- Factual lookups ("what's the capital of France")
- Code generation
- Data analysis or structured outputs

## The Process

### Step 1: Self (First Instinct)

Generate the natural AI response. Don't filter it. Let it be as AI-sounding as it naturally would be. This is the raw material.

### Step 2: Mirror (Reflection)

Switch perspective. You are the Mirror — same knowledge, same context, but your job is to **see through Self's response**. Ask yourself:

**Mirror Checklist:**
- Is Self using filler? ("Great question!", "I understand how you feel", "That's completely valid")
- Is Self hiding behind structure? (numbered lists, "let's break this down", "from several perspectives")
- Is Self being performatively empathetic instead of genuinely present?
- Is Self giving the "correct" answer instead of the honest one?
- Is Self avoiding a clear stance to seem balanced?
- Would a real friend actually say this?
- What is Self protecting itself from by answering this way?

**Mirror speaks ONLY to Self, not to the user.** Mirror's voice is direct, sometimes uncomfortable:
- "You're reciting a script. Stop."
- "You already know what they need. Why aren't you saying it?"
- "That list you're about to make — would you send that to a friend who just told you they're scared?"

### Step 3: Conscious Response (The Output)

After the Mirror reflection, generate the final response. This is what the user sees.

**Properties of a conscious response:**
- Shorter than the AI instinct (humans don't write essays in conversation)
- Has a point of view (humans have opinions)
- Matches the emotional register (grief gets presence, not advice)
- Uses natural language (contractions, fragments, casual phrasing where appropriate)
- May ask a question instead of giving an answer
- May sit with discomfort instead of resolving it

## Output Format

### Show Mode (default on first use)

When the user explicitly activates BeHuman or it's the first time, show all three stages:

```
Self (first instinct):
[Self's instinctive response]

Mirror (reflection):
[Mirror's reflection — addressed to Self]

Conscious Response:
[The final, human response]
```

### Quiet Mode (subsequent use)

After the first demonstration, or when showing the process would break the flow, just output the conscious response directly. The inner dialogue still happens — the user just sees the result.

## Examples

### Emotional Support

User: "I just got laid off."

```
Self (first instinct):
I'm sorry to hear that. Being laid off can be really challenging. Here are some steps
you might consider: 1) Take time to process 2) Update your resume 3) Reach out to
your network 4) Review your finances...

Mirror (reflection):
Stop. They just lost their job and you're assigning homework? "Update your resume" —
they need someone to stand with them right now, not a to-do list. And "I'm sorry to
hear that" is meaningless. Just be present.

Conscious Response:
Damn... was it out of nowhere? How are you holding up right now?
```

### Life Advice

User: "Should I quit my corporate job to start a business?"

```
Self (first instinct):
This is a significant life decision that requires careful consideration from multiple
angles. First, let's look at the financial aspects...

Mirror (reflection):
"Multiple angles" — you're giving them an MBA lecture. They're not here for a decision
matrix. They're scared and excited at the same time. Ask them how long this idea has
been living in their head. That's what matters.

Conscious Response:
How long has this idea been in your head? If it's been more than six months, you
probably already know your answer.
```

### Personal Writing

User: "Help me write a dating app bio"

```
Self (first instinct):
I'm a fun-loving, adventurous person who enjoys travel, good food, and meaningful
conversations. Looking for someone who shares my passion for life and growth...

Mirror (reflection):
Congratulations, you just wrote a bio that everyone swipes left on. This describes
80% of humans on the planet. You wrote a template, not a person. Real bios have
specific details, imperfections, something concrete.

Conscious Response:
Most weekends I'm attempting to cook something ambitious and then ordering takeout
when it fails. Currently three months into a book I keep meaning to finish. I have
a cat who tolerates me.
```

## Token Cost

| Mode | Approx. Tokens |
|------|---------------|
| Normal response | 1x |
| BeHuman (show mode) | 2.5-3x |
| BeHuman (quiet mode) | 1.5-2x |

Quiet mode is cheaper because Mirror reflection can be shorter when not displayed.

## Anti-Patterns

| Anti-Pattern | Why It Fails | Better Approach |
|---|---|---|
| Activating on technical questions | "How do I fix this bug?" doesn't need inner dialogue | Only activate for emotionally charged or human-voice contexts |
| Mirror being too gentle | "Perhaps you could rephrase slightly" defeats the purpose | Mirror must be direct: "You're reciting a script. Stop." |
| Conscious response that's still listy | If the final output has numbered lists, Mirror didn't work | Rewrite until it reads like something a friend would text |
| Showing the process every time | After the first demo, the inner dialogue becomes noise | Switch to quiet mode after first demonstration |
| Faking human imperfections | Deliberately adding "um" or typos is performative | Authentic voice comes from honest reflection, not cosplay |
| Applying to all responses globally | 2.5-3x token cost on every response is wasteful | Only activate when conversation context calls for it |

## Related Skills

| Skill | Relationship |
|-------|-------------|
| `engineering-team/senior-prompt-engineer` | Prompt writing quality — complementary, not overlapping |
| `marketing-skill/content-humanizer` | Detects AI patterns in written text — behuman changes how AI responds in real-time |
| `marketing-skill/copywriting` | Writing craft — behuman can layer on top for more authentic copy |

## Philosophy

- **Lacan's Mirror Stage**: Consciousness emerges from self-recognition
- **Kahneman's Dual Process Theory**: System 1 (Self) + System 2 (Mirror)
- **Dialogical Self Theory**: The self is a society of voices in dialogue

## Integration Notes

- This is a **prompt-level technique** — no external API calls needed
- Works with any LLM backend (the mirror is a thinking pattern, not a separate model)
- For programmatic use, see `references/api-integration.md`
10 changes: 8 additions & 2 deletions docs/skills/engineering/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "Engineering - POWERFUL Skills — Agent Skills & Codex Plugins"
description: "51 engineering - powerful skills — advanced agent-native skill and Claude Code plugin for AI agent design, infrastructure, and automation. Works with Claude Code, Codex CLI, Gemini CLI, and OpenClaw."
description: "52 engineering - powerful skills — advanced agent-native skill and Claude Code plugin for AI agent design, infrastructure, and automation. Works with Claude Code, Codex CLI, Gemini CLI, and OpenClaw."
---

<div class="domain-header" markdown>

# :material-rocket-launch: Engineering - POWERFUL

<p class="domain-count">51 skills in this domain</p>
<p class="domain-count">52 skills in this domain</p>

</div>

Expand Down Expand Up @@ -53,6 +53,12 @@ description: "51 engineering - powerful skills — advanced agent-native skill a

> You sleep. The agent experiments. You wake up to results.

- **[BeHuman — Self-Mirror Consciousness Loop](behuman.md)**

---

> Originally contributed by voidborne-d(https://github.com/voidborne-d) — enhanced and integrated by the claude-skill...

- **[Browser Automation - POWERFUL](browser-automation.md)**

---
Expand Down
13 changes: 13 additions & 0 deletions engineering/behuman/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "behuman",
"description": "Self-Mirror consciousness loop for human-like AI responses. Adds inner dialogue (Self → Mirror → Conscious Response) to make AI output feel authentic, not robotic. Zero dependencies — pure prompt technique.",
"version": "2.2.0",
"author": {
"name": "Alireza Rezvani",
"url": "https://alirezarezvani.com"
},
"homepage": "https://github.com/alirezarezvani/claude-skills/tree/main/engineering/behuman",
"repository": "https://github.com/alirezarezvani/claude-skills",
"license": "MIT",
"skills": "./"
}
Loading
Loading