執行 MISRA 感知的程式碼審查
何時使用: 你開發安全關鍵 C 程式碼,希望先對 MISRA 做一次初步檢查。
步驟
-
啟動在提示中提及 MISRA;skill 載入。✓ 已複製→ Skill 啟動
-
審查貼上差異;Claude 依規則號碼標記違規。✓ 已複製→ 附標注的差異
結果: 正式工具執行前的 MISRA 感知審查回饋。
作者 jherrodthomas · jherrodthomas/automotive-skills-suite
涵蓋 ISO 26262、AUTOSAR、ASPICE、MISRA 的 100+ skills——賦予 Claude 汽車工程所用的詞彙和規則集。
面向使用 Claude 進行程式碼審查、需求工作和稽核的汽車工程師。每個 skill 編碼了特定的標準或領域模式。安裝套件後,在提示中提及標準名稱,對應 skill 即自動啟動。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"automotive-skills-suite": {
"command": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
],
"_inferred": true
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"automotive-skills-suite": {
"command": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
],
"_inferred": true
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"automotive-skills-suite": {
"command": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
],
"_inferred": true
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"automotive-skills-suite": {
"command": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
],
"_inferred": true
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "automotive-skills-suite",
"command": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"context_servers": {
"automotive-skills-suite": {
"command": {
"path": "git",
"args": [
"clone",
"https://github.com/jherrodthomas/automotive-skills-suite"
]
}
}
}
}
加入 context_servers。Zed 儲存後熱重載。
claude mcp add automotive-skills-suite -- git clone https://github.com/jherrodthomas/automotive-skills-suite
一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。
何時使用: 你開發安全關鍵 C 程式碼,希望先對 MISRA 做一次初步檢查。
結果: 正式工具執行前的 MISRA 感知審查回饋。
在每個 PR 差異上執行 MISRA 感知審查
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| multi-skill | (詳見文件) | 依標準/領域觸發 | 1 次呼叫 |
觸發了錯誤的 skill在提示中對標準名稱更加具體
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| 手工提示 | 單一專案 | 無標準覆蓋 |