xiaohongshu
xiaohongshu
codespaces
Create, manage, and optimize GitHub Codespaces cloud development environments. Configure devcontainers, manage resources, and streamline cloud-based development. Use when setting up cloud development environments, configuring devcontainers, or managing Codespaces. Triggers on codespace, devcontai...
Full skill instructions
Cloud development environments that work anywhere.
gh auth login| Action | Command |
|---|---|
| Create codespace | gh codespace create -r owner/repo |
| List codespaces | gh codespace list |
| Open in VS Code | gh codespace code -c <name> |
| Open in browser | gh codespace view -c <name> -w |
| SSH into codespace | gh codespace ssh -c <name> |
| Stop codespace | gh codespace stop -c <name> |
| Delete codespace | gh codespace delete -c <name> |
| Type | vCPUs | RAM | Storage | Best For |
|---|---|---|---|---|
| Basic | 2 | 8GB | 32GB | Simple projects, docs |
| Standard | 4 | 16GB | 32GB | Most development |
| Large | 8 | 32GB | 64GB | Full-stack, multiple services |
| XL | 16 | 64GB | 128GB | Data science, ML |
| GPU | 4+ | 16GB+ | 64GB+ | ML training, CUDA |
.devcontainer/
+-- devcontainer.json # Default configuration
+-- web-frontend/
| +-- devcontainer.json # Frontend-specific
+-- backend-api/
| +-- devcontainer.json # Backend-specific
+-- data-science/
+-- devcontainer.json # Data science config
{
"name": "Project Dev Environment",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/python:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"ms-python.python"
]
}
},
"postCreateCommand": "npm install",
"forwardPorts": [3000, 5000]
}
Runs once when container is created:
"postCreateCommand": "npm install && npm run setup"
Runs every time codespace starts:
"postStartCommand": "npm run dev:services"
Runs when VS Code attaches:
"postAttachCommand": "echo 'Welcome! Run npm start to begin.'"
# For a specific repo
gh secret set API_KEY --repo owner/repo
# For Codespaces specifically
gh secret set DB_PASSWORD --app codespaces
# For user (all Codespaces)
gh secret set NPM_TOKEN --user
{
"containerEnv": {
"DATABASE_URL": "${localEnv:DATABASE_URL}"
},
"secrets": {
"API_KEY": {
"description": "API key for external service"
}
}
}
{
"forwardPorts": [3000, 5000, 8080],
"portsAttributes": {
"3000": {
"label": "Frontend",
"onAutoForward": "openBrowser"
},
"5000": {
"label": "API",
"onAutoForward": "notify"
}
}
}
gh codespace ports forward 3000:3000 -c <codespace-name>
# Create codespace for feature branch
gh codespace create -r owner/repo -b feature-branch -m standardLinux
# Open in VS Code
gh codespace code
# Create codespace from PR
gh codespace create -r owner/repo --branch pr-branch
# Or use the PR directly
gh pr checkout 123
gh codespace create
# Export port with visibility
gh codespace ports visibility 3000:public -c <name>
# Get shareable URL
gh codespace ports -c <name>
Enable prebuilds for faster startup:
// .github/codespaces/prebuild.json
{
"triggers": {
"branches": ["main", "develop"],
"paths": ["package.json", ".devcontainer/**"]
}
}
Configure personal dotfiles in GitHub Settings > Codespaces.
Configure in GitHub Settings > Codespaces:
gh codespace stopgh codespace delete| Issue | Solution |
|---|---|
| Slow startup | Enable prebuilds |
| Out of storage | Delete unused files, increase disk |
| Extension not working | Check devcontainer extensions config |
| Port not accessible | Check forwardPorts configuration |
| Environment variables missing | Verify secrets are set |
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