xiaohongshu
xiaohongshu
codex-search
Search the web using OpenAI Codex CLI to find current documentation, best practices, solutions, and technical information. Use when the user needs to research libraries, find API documentation, troubleshoot errors, or learn about new technologies. Requires Codex CLI installed.
Full skill instructions
Use OpenAI Codex CLI with web search capabilities to research current information, documentation, and solutions. This is a read-only research skill.
Verify Codex CLI is available:
codex --version # Should display installed version
Requirements:
~/.codex/config.toml)~/.codex/config.toml as follows:
[features]
web_search_request = true
Note: The --search flag enables Codex's native web search tool. If web search is not available in your environment, the skill will provide information based on the model's training data.
Extract what the user wants to know:
Check current project context if relevant:
# Check current dependencies
cat package.json # or requirements.txt, go.mod, etc.
# Check versions in use
npm list --depth=0 # or pip list, go list, etc.
Run Codex with the --search flag for web research:
codex --sandbox=read-only --search exec "Research and provide comprehensive information about: [QUERY]
Include:
1. Direct answer to the question
2. Official documentation links
3. Best practices and recommended approaches
4. Code examples with explanations
5. Common pitfalls and how to avoid them
6. Alternative approaches if applicable
7. Source URLs for all information
Search context:
- Current year: 2026
- Looking for latest/current information
- Prefer official documentation over third-party sources
- Include security considerations if relevant
Do NOT make any changes - this is research only."
Format the response with proper citations:
codex --sandbox=read-only --search exec "Find official documentation for React hooks in 2026:
- useState, useEffect, useContext documentation
- Best practices for custom hooks
- Performance optimization tips
- Official examples
Include only official React documentation."
codex --sandbox=read-only --search exec "Compare Prisma vs TypeORM vs Drizzle for TypeScript database ORMs in 2026:
- Feature comparison
- Performance benchmarks
- Community adoption
- Learning curve
- Use case recommendations
Include recent comparisons and official documentation."
codex --sandbox=read-only --search exec "Research solutions for error: 'ECONNREFUSED' in Node.js:
- Root causes
- Common solutions
- Prevention strategies
- Related issues
Include Stack Overflow discussions and official Node.js docs."
codex --sandbox=read-only --search exec "Find current security best practices for JWT authentication in 2026:
- OWASP recommendations
- Token storage best practices
- Refresh token patterns
- Common vulnerabilities
- Security tools
Prioritize official sources and security organizations."
codex --sandbox=read-only --search exec "Find getting started guide for Next.js 15 in 2026:
- Installation and setup
- Project structure
- Core concepts
- First app tutorial
- Best practices for beginners
Use official Next.js documentation."
Structure research findings like this:
## Research: [Topic]
### Summary
[Direct answer with key findings in 2-3 sentences]
### Official Documentation
- [Library Name - Topic](https://official-url) - Official reference
- [API Docs](https://api-url) - API documentation
### Key Findings
**Best Practices:**
1. [Practice] - [Explanation] ([Source URL])
2. [Practice] - [Explanation] ([Source URL])
**Common Pitfalls:**
- [Issue] - [How to avoid] ([Source URL])
**Recommendations:**
- [Recommendation with reasoning]
### Code Examples
```language
// Source: [URL]
// Example: [Description]
[Working code example]
```
### Alternative Approaches
| Approach | Pros | Cons | Use When |
| ---------- | ---- | ---- | -------- |
| [Option 1] | ... | ... | ... |
| [Option 2] | ... | ... | ... |
### Sources
All information sourced from:
1. [Title](URL) - [Description]
2. [Title](URL) - [Description]
3. [Title](URL) - [Description]
Last verified: [Current date]
✅ DO:
--search flag for web research❌ DON'T:
After getting Codex's search results:
Prioritize:
Verify:
Use with caution:
If Codex not found:
Codex CLI is not available. Ensure it's installed and in your PATH.
Install: https://developers.openai.com/codex/cli/
If authentication fails:
Codex CLI needs authentication. Run:
codex
Then follow the prompts to sign in with ChatGPT or configure API key.
If search returns no results:
If results are outdated:
If results conflict:
After gathering information:
Example:
# After researching a library, check compatibility
npm info [package]@latest peerDependencies
npm install [package]@latest --dry-run
Research before choosing a library or framework:
codex --sandbox=read-only --search exec "Evaluate GraphQL vs REST vs tRPC for TypeScript API in 2026"
Find migration guides and breaking changes:
codex --sandbox=read-only --search exec "Find breaking changes migrating from Vue 2 to Vue 3"
Find vulnerabilities and best practices:
codex --sandbox=read-only --search exec "Search for security vulnerabilities in [email protected] CVE advisories"
Get tutorials and learning resources:
codex --sandbox=read-only --search exec "Find beginner-friendly TypeScript tutorial for 2026"
Research error messages and solutions:
codex --sandbox=read-only --search exec "Solutions for 'Module not found' error in webpack 5"
For complex research, break into focused queries:
# Query 1: Current state
codex --sandbox=read-only --search exec "What is the current recommended approach for SSR in React 2026?"
# Query 2: Specific implementation
codex --sandbox=read-only --search exec "Find implementation examples for React Server Components"
# Query 3: Gotchas
codex --sandbox=read-only --search exec "Common problems with React Server Components and solutions"
codex --sandbox=read-only --search exec "Find features specific to TypeScript 5.5:
- New features in this version
- Breaking changes from 5.4
- Migration guide
Ensure results are version-specific."
codex --sandbox=read-only --search exec "Detailed comparison of Vite vs webpack vs Turbopack in 2026:
- Build performance benchmarks
- Developer experience
- Ecosystem and plugin support
- Production optimization
- Migration complexity from webpack
Include recent benchmarks and official documentation."
Remember: This skill is READ-ONLY research. For code modifications, use the codex-exec skill. Always cite sources and verify information is current.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience