跳到正文
cccskills
免费在 GitHub 公开

opencode-optimization

Optimize OpenCode IDE configuration and workflows for this portfolio

中文简介正在准备中。当前显示原文说明。

集成工具Vercel
查看安装方法

包含的文件(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

OpenCode Optimization Skill

Optimize OpenCode IDE configuration for maximum productivity with MiMo v2.5 on this portfolio.

When to use this skill

  • Setting up OpenCode IDE for this portfolio
  • Adding or updating MCP servers in opencode.json
  • Configuring LSP servers for better code intelligence
  • Troubleshooting MCP/LSP server issues

Current MCP servers (opencode.json)

ServerPurposeRequires API key
chrome-devtoolsBrowser debugging, performance traces, screenshotsNo
@21st-dev/magicGenerate UI components from natural languageYes (API_KEY_21ST_DEV)
@magicuidesign/mcpMagic UI animated components (marquee, bento, dock)No
githubGitHub API — issues, PRs, repos, code searchYes (GITHUB_TOKEN)
filesystemFile system read/write with path restrictionsNo
sequential-thinkingStructured reasoning, step-by-step problem solvingNo
memoryKnowledge graph memory for persistent contextNo
brave-searchWeb search for docs, Stack Overflow, API referencesYes (BRAVE_API_KEY)
fetchFetch and analyze web content, API docsNo
puppeteerAdvanced browser automation, screenshots, scrapingNo
sqliteLocal SQLite for caching, analytics, data analysisNo
sanity-cmsDirect Sanity CMS operations, schema, content queriesYes (SANITY_AUTH_TOKEN)
sentrySentry error tracking and performance monitoringYes (SENTRY_AUTH_TOKEN)
vercelVercel deployment, edge functions, analyticsYes (VERCEL_TOKEN)
dockerDocker container managementNo

Current LSP servers

ServerExtensionsPurpose
typescript.ts, .tsx, .js, .jsxType checking, inlay hints, go-to-definition
eslint.ts, .tsx, .js, .jsxReal-time linting, auto-fix
prettier.ts, .tsx, .js, .jsx, .css, .json, .mdCode formatting
tailwindcss.ts, .tsx, .js, .jsx, .cssTailwind class completion, validation
html.html, .htmHTML validation, formatting
css.css, .scss, .lessCSS validation, completion
json.json, .jsoncJSON schema validation
markdown.md, .mdxMarkdown editing
graphql.graphql, .gqlGraphQL schema validation (not actively used)
yaml.yaml, .ymlYAML validation
dockerfileDockerfileDockerfile linting

Workflow

Adding a new MCP server

  1. Edit opencode.json at the repo root
  2. Add the server under "mcp":
{
  "mcp": {
    "server-name": {
      "type": "local",
      "command": ["npx", "-y", "package-name@latest"],
      "env": {
        "API_KEY": "${ENVIRONMENT_VARIABLE}"
      },
      "description": "What this server does"
    }
  }
}
  1. Restart OpenCode to pick up changes

Adding a new LSP server

  1. Edit opencode.json at the repo root
  2. Add the server under "lsp":
{
  "lsp": {
    "language-name": {
      "command": "npx",
      "args": ["-y", "language-server-package", "--stdio"],
      "extensions": [".ext"]
    }
  }
}
  1. Restart OpenCode

Troubleshooting MCP servers

Server not starting:

  1. Check the command in opencode.json is correct
  2. Verify required environment variables are set
  3. Check OpenCode logs for errors

Server crashes:

  1. Try running the command manually in terminal
  2. Check for version conflicts
  3. Update to latest version

Checklist

  • MCP servers configured in opencode.json
  • LSP servers enabled for all file types
  • Environment variables set for authenticated servers
  • Servers restart cleanly after config changes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.

中文简介正在准备中。当前显示原文说明。

PP-Namias/Portfolio22026年10月16日 更新

查看 PP-Namias 的全部技能

报告此技能的问题