Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

claude-dev-setupClaude DEV 设置

Agent Skill

claude-dev-setup 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,118

周安装

165

GitHub Stars

公开资料未说明

下载量

1,333
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-dev-setup(Claude DEV 设置)
来源仓库:https://github.com/dhruvarvindsingh/claude-dev-setup
安装命令:
openclaw skills install claude-dev-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install claude-dev-setup

简介

完成 Claude Code CLI 与会话管理和 APEX 认知框架的集成。设置具有持久任务跟踪功能的编码代理的一项技能。

SKILL.md

name
Claude Dev Setup
slug
claude-dev-setup
version
1.1.0
homepage
https://clawhub.ai/DhruvArvindSingh/claude-dev-setup
description
Complete Claude Code CLI integration with session management and APEX cognitive framework. One skill to set up coding agents with persistent task tracking.
metadata
clawdbot
emoji
🤖
requires
bins
["claude"]
os
["linux", "darwin"]

Claude Dev Setup

Complete package for coding agents: Claude Code CLI integration, session management, and APEX cognitive framework.

What This Skill Does

Installs and configures:

  1. Session Trackingmemory/claude-code-sessions.md for background task management
  2. AGENTS.md Section — Workflow documentation for all coding agents
  3. APEX Stack Reference — How to add cognitive framework to project CLAUDE.md files
  4. OAuth Token Handling — Automatic token extraction and usage

Prerequisites

  • Node.js 18+
  • Claude Pro/Max subscription (for OAuth token)
  • OpenClaw agent workspace

OAuth Token (CRITICAL)

Where the Token Lives

Claude Code stores its OAuth token in:

~/.claude/.credentials.json

Token Format

sk-ant-oat01-xxxxx...

How to Get the Token

Option 1: Extract from credentials file (RECOMMENDED)

# Extract the accessToken from credentials
cat ~/.claude/.credentials.json | grep -o '"accessToken":"[^"]*"' | cut -d'"' -f4

Option 2: Authenticate via browser (first-time setup)

claude setup-token
# Opens browser for OAuth flow
# Paste authorization code when prompted

ALWAYS Use the Token When Calling Claude Code

Every Claude Code CLI call MUST include the token:

# ✅ CORRECT - Token set explicitly
export CLAUDE_CODE_OAUTH_TOKEN="sk-ant-oat01-xxxxx..."
claude --print --dangerously-skip-permissions "your task"

# ❌ WRONG - Token not set, will fail in non-interactive mode
claude --print "your task"

Automatic Token Extraction

Add to your shell profile for automatic token loading:

# Add to ~/.bashrc or ~/.zshrc
export CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/.claude/.credentials.json 2>/dev/null | grep -o '"accessToken":"[^"]*"' | cut -d'"' -f4)

For Agent Executors

When using the exec tool, always extract and set the token:

exec({
  command: "export CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/.claude/.credentials.json | grep -o '\"accessToken\":\"[^\"]*\"' | cut -d'\"' -f4) && claude --print --dangerously-skip-permissions 'Task description'",
  background: true,
  yieldMs: 10000
})

Or pre-extract and use:

// First, extract token
exec({
  command: "cat ~/.claude/.credentials.json | grep -o '\"accessToken\":\"[^\"]*\"' | cut -d'\"' -f4"
})

// Then use in all subsequent calls
exec({
  command: "CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-xxx claude --print --dangerously-skip-permissions 'Task'"
})

Architecture

Agent Workspace
├── AGENTS.md                          # + Session management section
├── memory/
│   └── claude-code-sessions.md         # NEW: Session registry
└── skills/
    ├── claude-code-cli-openclaw/       # CLI integration
    ├── apex-stack-claude-code/         # Cognitive framework
    └── claude-dev-setup/               # THIS SKILL

System Level
└── ~/.claude/.credentials.json         # OAuth token (DO NOT COMMIT)

Session Management

Registry Format

Sessions are tracked in memory/claude-code-sessions.md:

| Session ID | Label | Task | Started | Status |
|------------|-------|------|---------|--------|
| tender-nexus | build-auth | Build auth module | 2026-03-24 08:50 UTC | running |

Starting a Background Task (CORRECT WAY)

// Step 1: Extract token from credentials
// Step 2: Use in Claude Code call
exec({
  command: "CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/.claude/.credentials.json | grep -o '\"accessToken\":\"[^\"]*\"' | cut -d'\"' -f4) claude --print --dangerously-skip-permissions 'Task description'",
  background: true,
  yieldMs: 10000
})

After starting, log the session:

  1. Note sessionId from response
  2. Append to memory/claude-code-sessions.md
  3. Report to user: "Started X (session: label)"

Checking Status

When user asks "what's the status?":

process({ action: "log", sessionId: "session-id" })

Label Naming Convention

  • build-feature-X — Building a new feature
  • refactor-Y-module — Refactoring code
  • fix-bug-Z — Bug fix
  • test-coverage-A — Adding tests
  • cleanup-legacy-B — Removing old code

Quick Tasks (< 30 seconds)

For simple tasks, use direct exec without tracking:

exec({
  command: "CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/.claude/.credentials.json | grep -o '\"accessToken\":\"[^\"]*\"' | cut -d'\"' -f4) claude --print --dangerously-skip-permissions 'Quick fix'",
  timeout: 60
})

AGENTS.md Integration

After installing this skill, your AGENTS.md gets a new section:

## 🤖 Claude Code CLI Sessions

You have access to Claude Code CLI for coding tasks.

### OAuth Token (Required)

**Token location:** `~/.claude/.credentials.json`

**ALWAYS extract and use the token:**

CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/.claude/.credentials.json | grep -o '"accessToken":"[^"]*"' | cut -d'"' -f4) claude --print --dangerously-skip-permissions 'task'


### Session Tracking

All background sessions tracked in `memory/claude-code-sessions.md`.

**Before starting:** Check for running sessions
**After starting:** Log session ID + label
**On completion:** Update status column

### When User Asks Status

1. Read sessions file
2. Find session by label
3. Poll for output
4. Summarize progress

APEX Stack for Projects

The cognitive framework (apex-stack-claude-code) should be added to project CLAUDE.md files, not agent memory.

Adding to a Project

cd /path/to/your/project

# If CLAUDE.md doesn't exist:
cat ~/.openclaw/workspace-YOURS/skills/apex-stack-claude-code/SKILL.md > CLAUDE.md

# If CLAUDE.md exists, append:
cat ~/.openclaw/workspace-YOURS/skills/apex-stack-claude-code/SKILL.md >> CLAUDE.md

What APEX Stack Does

LayerPurpose
APEXCognitive modes (precision, execution, architecture, creative)
MEMORIAPersistent memory for project context
ARCHITECTAutonomous execution loop

Project CLAUDE.md Structure

# Project: [Name]

## Overview
[1-2 sentences]

## Tech Stack
- Language: ...
- Framework: ...

[APEX Stack content appended here]

Complete Workflow

User gives task
    ↓
Agent reads memory/claude-code-sessions.md (check for conflicts)
    ↓
Agent extracts token: cat ~/.claude/.credentials.json | grep accessToken
    ↓
Agent starts: exec({ command: "CLAUDE_CODE_OAUTH_TOKEN=xxx claude ...", background: true })
    ↓
Agent logs session to claude-code-sessions.md
    ↓
Agent reports: "Started X (session: build-feature-X)"
    ↓
User: "What's the status?"
    ↓
Agent reads sessions file → polls process → summarizes

Installation Checklist

Run this after installing the skill:

  • [ ] Claude Code CLI installed: which claude
  • [ ] Authenticated: check ~/.claude/.credentials.json exists
  • [ ] Token extractable: cat ~/.claude/.credentials.json | grep accessToken
  • [ ] Session file created: memory/claude-code-sessions.md
  • [ ] AGENTS.md updated with session section
  • [ ] APEX Stack added to project CLAUDE.md (if applicable)

Security Notes

  • OAuth token stored in ~/.claude/.credentials.json (valid 1 year)
  • NEVER commit CLAUDE_CODE_OAUTH_TOKEN to git
  • ALWAYS extract token from credentials file, never hardcode
  • Add .claude/ to .gitignore
  • Sessions are local to each agent workspace
  • MEMORIA explicitly forbids storing credentials

Troubleshooting

"Authentication failed" or "No token"

# Check if credentials exist
ls -la ~/.claude/.credentials.json

# If missing, run setup
claude setup-token

"command not found: claude"

# Install Claude Code CLI
npm install -g @anthropic-ai/claude-code

# Verify installation
which claude
claude --version

Token works in terminal but not in exec

The token must be exported in the same shell session:

# ✅ CORRECT - Same session
CLAUDE_CODE_OAUTH_TOKEN=xxx claude --print "task"

# ❌ WRONG - Separate commands
export CLAUDE_CODE_OAUTH_TOKEN=xxx
claude --print "task"  # Token not available

Token Efficiency

MethodTokens/TaskCost
Raw API (full context)10,000-50,000Per-token
Claude Code (tool-based)~500Flat-rate (Max sub)

Savings: 80-90% reduction in token usage.

Related Skills

Install these alongside for full capability:

  • self-improving — Learn from corrections
  • claude-code-cli-openclaw — CLI integration details
  • apex-stack-claude-code — Cognitive framework

Files in This Skill

claude-dev-setup/
├── SKILL.md              # This file
├── sessions-template.md  # Template for claude-code-sessions.md
├── agents-section.md     # AGENTS.md section template
└── setup.sh              # Installation script

Publishing

To publish to ClawHub:

clawhub publish ./skills/claude-dev-setup \
  --slug claude-dev-setup \
  --name "Claude Dev Setup" \
  --version 1.1.0 \
  --changelog "Added explicit OAuth token extraction guide"

Feedback

  • If useful: clawhub star claude-dev-setup
  • Issues: Open issue on ClawHub
  • Stay updated: clawhub sync

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.9%
按下载量换算985

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills