chaorenex1/coding-workflow/memex-cli
Claude Code and agent skill by chaorenex1/coding-workflow
- community
Checking that the SKILL.md file is still in the repository.
Execute AI tasks (codex/claude/gemini) with memory and resume support via memex-cli stdin protocol.
Install
npx vskill@latest install chaorenex1/coding-workflow/memex-cliSKILL.md
Memex CLI
A CLI wrapper for AI backends (Codex, Claude, Gemini) with built-in memory and resume capabilities.
Core Concepts
memex-cli uses stdin protocol to define tasks, allowing:
- Multi-backend AI execution (codex, claude, gemini)
- Parallel and sequential task orchestration
- Resume from previous runs with full context
Basic Task Syntax
Required Parameters
| Parameter | Description | Example | |
|---|---|---|---|
id | Unique task identifier | implement-auth-20260110 | |
backend | AI backend | codex, claude, gemini | |
workdir | Working directory path | <working_directory> or /home/user/app | |
<TASK_CONTENT> | Step by step instructions for the task | Implement authentication module |
Optional Parameters
| Parameter | Description | Example | |
|---|---|---|---|
role_prompt | Task role prompt path | prompts/developer_role.md | |
dependencies | Task dependencies | task-a or task-a,task-b | |
timeout | Timeout in seconds | 3000000 | |
files | File Or Directory paths to load | src/**/*.py (glob supported) |
Task Content Generate
Write task content as explicit, step-by-step instructions with clear outputs.
Recommended Structure
- Objective: What must be achieved.
- Scope: Which files, modules, or boundaries are included.
- Steps: Ordered implementation or analysis actions.
- Output: What artifacts or results must be returned.
- Validation: How to verify correctness.
Template
Example: Single Task Content
Example: Multi-Task Content Split
Use focused task content per task when using multi-task execution:
- Planning task: architecture and implementation plan only.
- Implementation task: code changes only, based on approved plan.
- Validation task: tests, review, and quality checks only.
Quality Checklist
- Avoid vague verbs such as "improve" or "optimize" without measurable criteria.
- Include explicit constraints (performance, compatibility, security) when required.
- Keep each task content scoped so completion can be clearly verified.
Backend Selection Guide
Codex
Specialized in deep code analysis, large-scale refactoring, and performance optimization.
- Deep Code Analysis & Understanding — Analyze complex implementations with comprehensive understanding, navigate intricate dependencies, and identify architectural patterns in mixed-language codebases.
- Large-Scale Refactoring — Execute precise refactoring across multiple files with accurate dependency tracking, ensuring no references are broken during structural transformations.
- Algorithm & Performance Optimization — Identify performance bottlenecks, optimize algorithms, and provide detailed optimization strategies with measurable improvements.
Claude
Specialized in fast feature delivery from clear requirements, technical documentation design, and professional prompt engineering.
- Quick Feature Implementation from Clear Requirements — Quickly translate well-defined product or engineering requirements into practical implementation plans and deliver features efficiently.
- Technical Documentation Design & Writing — Produce clear, professional technical documents such as API specifications, integration guides, architecture notes, and README files.
- Professional Prompt Engineering — Craft high-quality prompts for product requirements, design specifications, workflow orchestration, and other structured AI-assisted development tasks.
Gemini
- UI Skeletons & Layout Prototyping — Build clear UI skeletons and layout prototypes to quickly validate information architecture and page structure.
- Consistent Design System Implementation — Implement interfaces with a consistent design language, including reusable components, spacing rules, and visual patterns.
- Interactive and Accessible Elements — Create interactive, accessible UI elements with clear states, keyboard support, and usability-focused interactions.
Task ID Patterns
Recommended patterns:
Avoid generic IDs like task1, task2.
Role Prompt
Use role_prompt to attach a predefined role instruction file to a task.
When to Use
- Enforce consistent behavior across repeated tasks.
- Apply domain-specific expertise (for example, backend engineer, QA reviewer, or API architect).
- Separate reusable role guidance from task-specific content.
Format
role_promptshould be a readable file path relative toworkdir.- Keep role prompt files concise and focused on role behavior, constraints, and output style.
Example
Best Practices
- Reuse stable role prompt files instead of duplicating instructions in every task.
- Keep task content focused on concrete goals; keep role behavior in
role_prompt. - Version and review role prompt files like code to maintain quality.
File References
Use files to load relevant context into a task. You can reference single files, directories, or glob patterns.
Common Reference Patterns
- Single file:
files: ./README.md - Directory:
files: ./docs/ - Glob pattern:
files: src/**/*.ts - Multiple
filesentries: use commas to separate paths
Example
Multi-Task Execution
Run multiple tasks in a single stdin payload. memex-cli automatically schedules tasks by dependency:
- Tasks without
dependenciesrun in parallel. - Tasks with
dependenciesrun after their prerequisite tasks complete.
Example A: Parallel Execution
Use this when tasks are independent and can run at the same time.
Example B: DAG (Dependency-Aware) Execution
Use this when later tasks depend on earlier outputs.
Execution modes:
- Parallel (default): Independent tasks execute simultaneously for faster completion.
- DAG (dependency-aware): Tasks execute in dependency order when
dependenciesis set.
Return Format
Resume Functionality
Continue from a previous run using --run-id:
Context preservation:
- Previous task outputs available
- Conversation history maintained
- File changes visible
Invocation Pattern
Single Task
Use this pattern for one independent task.
Multi-Task
Use this pattern when you need parallel or dependency-aware execution.
Session Resume
Use this pattern to continue an existing run with preserved context.
Critical Rules
- Never kill any memex-cli process manually.
- Always wait for TaskOutput and check task output before making decisions.
- Always verify that memex-cli processes have not been killed.
Security
- Do not expose sensitive information in task instructions or outputs.
- Ensure file paths and data references are secure and access-controlled.
- Regularly review and update dependencies to mitigate vulnerabilities.
- Task instructions should avoid including sensitive information such as passwords, API keys, personal data, or permission-related details.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memex-cli/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chaorenex1/coding-workflow/memex-cli)