本文へ移動
cccskills
無料GitHub で公開

opencode-optimization

Optimize OpenCode IDE configuration and workflows for this portfolio

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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

日本語の概要は準備中です。原文の説明を表示しています。

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

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月7日 更新

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月7日 更新

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月7日 更新

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月7日 更新

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月7日 更新

PP-Namias のスキルをすべて見る

このスキルの問題を報告する