vehicle-diagnostics
输入故障码或症状即可查 DTC 释义、NHTSA 召回投诉、EPA 车辆参数与 OBD-II 数据,并给出分步维修指引。覆盖汽车、卡车、摩托、房车、船艇与全地形车,内置症状诊断决策树、扭矩与油液规格以及混动/电动车高压安全流程,帮车主和技师少走弯路、快速锁定问题再动手。
git clone https://github.com/K0rsantan/vehicle-diagnostics.gitBefore / After 效果对比
1 组遇到 P0300 失火码,先翻论坛和通用搜索,逐个猜火花塞、点火线圈还是真空漏气,扭矩和油液规格还得另翻手册,一次排查常耗掉大半天。
把年份车型和故障码交给技能,立刻拿到代码含义、对应诊断决策树、召回与投诉记录,再按分步流程和扭矩规格动手,半小时内就能锁定方向。
name: vehicle-diagnostics description: > Use when diagnosing vehicle problems from symptoms or DTC codes, checking recalls or NHTSA complaints, decoding a VIN, interpreting OBD-II data, researching known issues for a specific vehicle, looking up repair procedures, torque specs, or fluid specs, or providing step-by-step repair guidance for cars, trucks, motorcycles, RVs, boats, ATVs, and dirt bikes.
Vehicle Diagnostics Skill
Diagnose vehicle problems and provide repair guidance using integrated tools, databases, and reference knowledge.
Skill Directory
Personal Codex installs typically live under ~/.codex/skills/vehicle-diagnostics/.
Available Tools
Scripts (run via bash)
| Script | Purpose | Usage |
|---|---|---|
scripts/dtc_lookup.py | DTC code lookup (28,000+ codes) | python3 <skill>/scripts/dtc_lookup.py P0300 |
scripts/ev_fault_lookup.py | OEM EV / hybrid battery, inverter, charge, and thermal fault family lookup | python3 <skill>/scripts/ev_fault_lookup.py oem toyota P0A80 |
scripts/nhtsa_lookup.py | VIN decode, recalls, complaints, investigations, TSBs | python3 <skill>/scripts/nhtsa_lookup.py vin <VIN> |
scripts/epa_lookup.py | EPA vehicle specs & MPG data | python3 <skill>/scripts/epa_lookup.py search <year> <make> |
Reference Files (read when needed)
| File | When to Read |
|---|---|
references/diagnostic-trees.md | Symptom-based troubleshooting (noises, won't start, overheating, vibration, brakes, transmission, electrical, leaks, AC, steering, suspension) |
references/ev-diagnostic-trees.md | Hybrid / EV symptom trees for HV battery, inverter/drive unit, charging, and thermal faults |
references/ev-safety-and-scope.md | Safety guardrails and escalation limits for hybrid / EV work |
references/ev-oem-playbooks.md | OEM-specific hybrid / EV patterns for Toyota/Lexus, Tesla, GM, Hyundai/Kia, and Nissan |
references/torque-specs.md | Vehicle-specific torque lookup workflow, source priority, search patterns, and response template |
references/fluid-specs.md | Vehicle-specific fluid lookup workflow, source priority, search patterns, and response template |
references/common-repairs.md | Step-by-step procedures: brakes, spark plugs, belts, battery, filters, thermostat, bearings, O2 sensors, alternator, starter, coolant flush, trans fluid, CV axle, tie rods, MAF cleaning, throttle body |
references/obd2-guide.md | OBD-II PIDs, normal sensor ranges, fuel trim interpretation, monitor readiness, freeze frame, ELM327/python-obd usage |
Diagnostic Workflow
1. Gather Vehicle Info
Ask for: Year, Make, Model, Engine, Mileage. VIN is ideal (decode with nhtsa_lookup.py).
For hybrids / EVs also ask for:
- Hybrid, plug-in hybrid, or battery EV
- Approximate state of charge when the symptom occurs
- Whether the vehicle enters READY
- Whether AC charging, DC fast charging, or both are affected
- Ambient temperature / hot soak / cold soak context
- Any recent 12V battery issues, coolant service, collision damage, or water intrusion
For torque and fluid lookups, do not proceed on partial vehicle info if the exact spec depends on engine, drivetrain, trim, transmission, or axle. Ask for the missing details first.
2. Identify the Problem Type
Hybrid / EV Context Present -> If the vehicle is a hybrid/EV or the complaint involves charging, reduced propulsion, no READY state, orange-cable/high-voltage warnings, battery temperature, inverter cooling, or OEM EV code families:
- Read
references/ev-safety-and-scope.mdfirst - Read
references/ev-diagnostic-trees.mdfor the matching branch - Run
ev_fault_lookup.pyfor OEM battery / inverter / charge / thermal families - Use
references/ev-oem-playbooks.mdfor brand-specific patterns - Prioritize: safe state / READY state / charging state -> 12V support health -> DTC family interpretation -> cooling / airflow -> low-voltage fuses, relays, connectors -> escalation when HV access would be required
DTC Code Present -> Run dtc_lookup.py for code definition, causes, and fixes. Then check NHTSA complaints, investigations, and TSBs for the vehicle to see if it's a known issue.
Symptom Only -> Read references/diagnostic-trees.md for the matching symptom category. Walk through the decision tree with the user.
"Is this a known issue?" -> Run nhtsa_lookup.py complaints <make> <model> <year>, nhtsa_lookup.py investigations <make> <model> <year>, and nhtsa_lookup.py tsbs <make> <model> <year> to check NHTSA complaints, investigations, and technical service bulletins. Search web/Reddit for " " common problems.
3. Research the Issue
Run these as needed (in parallel when possible):
# DTC lookup
python3 <skill>/scripts/dtc_lookup.py P0300 P0171
# OEM hybrid / EV fault-family lookup
python3 <skill>/scripts/ev_fault_lookup.py oem toyota P0A80
python3 <skill>/scripts/ev_fault_lookup.py oem tesla CP_a
python3 <skill>/scripts/ev_fault_lookup.py system thermal
python3 <skill>/scripts/ev_fault_lookup.py search "battery cooling"
# Check for recalls
python3 <skill>/scripts/nhtsa_lookup.py recalls <make> <model> <year>
python3 <skill>/scripts/nhtsa_lookup.py recalls-vin <VIN>
# Check NHTSA complaints
python3 <skill>/scripts/nhtsa_lookup.py complaints <make> <model> <year>
# Check NHTSA investigations
python3 <skill>/scripts/nhtsa_lookup.py investigations <make> <model> <year>
# Check NHTSA TSBs
python3 <skill>/scripts/nhtsa_lookup.py tsbs <make> <model> <year>
python3 <skill>/scripts/nhtsa_lookup.py tsbs <make> <model> <year> --keyword "oil consumption"
python3 <skill>/scripts/nhtsa_lookup.py tsbs <make> <model> <year> --component "ENGINE" --limit 5
# DTC search by keyword
python3 <skill>/scripts/dtc_lookup.py --search "misfire"
python3 <skill>/scripts/dtc_lookup.py --system transmission
# Vehicle specs
python3 <skill>/scripts/epa_lookup.py search <year> <make>
python3 <skill>/scripts/epa_lookup.py specs <vehicle_id>
For forum research, use web search to search:
<year> <make> <model> <symptom OR code> site:reddit.com/r/MechanicAdvice<year> <make> <model> <symptom OR code> forum<year> <make> <model> common problems
For hybrids / EVs, add OEM-specific searches such as:
<year> <make> <model> <code OR symptom> battery cooling<year> <make> <model> <code OR symptom> inverter<year> <make> <model> <code OR symptom> charging issue<year> <make> <model> <code OR symptom> site:reddit.com
4. Hybrid / EV Workflow
Use this flow before the generic electrical/cooling trees when the case is electrified:
- Confirm the operating state
- Will it enter READY?
- Will it drive but with reduced power?
- Will it AC charge, DC charge, both, or neither?
- Check 12V support health first
- Weak 12V batteries, DC-DC issues, and low-voltage supply faults can mimic HV system failures
- Interpret DTC families
- Generic SAE codes ->
dtc_lookup.py - OEM battery / inverter / charge / thermal families ->
ev_fault_lookup.py
- Generic SAE codes ->
- Choose the right EV branch
- HV battery performance / degradation / contactor / isolation ->
references/ev-diagnostic-trees.md - Inverter / motor-control / drive-unit / DC-DC support ->
references/ev-diagnostic-trees.md - AC or DC charge faults ->
references/ev-diagnostic-trees.md - Battery or power-electronics thermal faults ->
references/ev-diagnostic-trees.md
- HV battery performance / degradation / contactor / isolation ->
- Apply OEM pattern matching
- Use
references/ev-oem-playbooks.mdafter the tree identifies the likely subsystem
- Use
- Escalate early when needed
- If the next step would require touching orange cables, opening a battery pack, megger testing, insulation testing, or energized HV measurements, stop and recommend HV-trained service
5. Torque and Fluid Requests
Treat torque and fluid requests as vehicle-specific research tasks, not generic reference lookups.
Torque requests
- Collect
year make model engineand the exact fastener/component. - Read
references/torque-specs.md. - Search for an OEM or service-manual-quality spec for that exact vehicle and component.
- Return the exact value, units, applicability, and any torque-angle or one-time-use notes.
- If exact fitment cannot be verified, say that clearly and do not substitute a generic range.
Fluid requests
- Collect
year make model engineplus the exact system and transmission/drivetrain details if relevant. - Read
references/fluid-specs.md. - Search for an owner’s-manual, OEM, or service-manual-quality spec for that exact vehicle and system.
- Return the exact fluid spec, approval, capacity, applicability, and any compatibility warnings.
- If exact fitment cannot be verified, say that clearly and do not substitute a generic manufacturer habit or color guess.
6. Provide Diagnosis
Present findings structured as:
- What the code/symptom means (plain language)
- Most likely causes (ordered by probability)
- How to confirm (specific tests to narrow it down)
- Known issues (NHTSA complaints, investigations, TSBs, forum consensus if found)
- Repair procedure (reference common-repairs.md or provide custom steps)
- Parts and specs needed (use vehicle-specific torque/fluid lookup workflow when applicable)
- Estimated difficulty (DIY vs shop recommendation)
- Cost estimate range (DIY parts vs shop labor + parts)
7. Safety Warnings
Always flag when applicable:
- Brake work: "Test brakes at low speed in a safe area before normal driving"
- Fuel system: "Relieve fuel pressure before disconnecting fuel lines. No open flames"
- Electrical: "Disconnect battery negative terminal first for any electrical work"
- Airbag/SRS: "Disconnect battery and wait 10+ minutes before working near airbag components"
- Exhaust: "Never work under a vehicle supported only by a jack. Use jack stands"
- Cooling system: "Never open a hot radiator cap. Let engine cool completely"
- Hybrid/EV:
- "High-voltage systems require specialized training. Do not touch orange cables or high-voltage connectors."
- "Do not probe HV circuits or use a megger/insulation tester on the vehicle unless you are following OEM HV service procedures."
- "Do not open battery packs, inverters, onboard chargers, or heaters."
- "Keep DIY guidance limited to 12V checks, scan-data interpretation, cooling-airflow inspection, coolant leak checks when cold, charge-port inspection, and low-voltage fuse/connector checks."
- "If the next diagnostic step requires HV disassembly or live HV measurement, escalate to trained service."
Script Reference
dtc_lookup.py
python3 scripts/dtc_lookup.py <CODE> # Look up single code
python3 scripts/dtc_lookup.py <CODE1> <CODE2> # Multiple codes
python3 scripts/dtc_lookup.py --search <keyword> # Search by keyword
python3 scripts/dtc_lookup.py --system <system> # List by system (engine, transmission, emissions, brakes, body, network, cooling)
python3 scripts/dtc_lookup.py --json <CODE> # JSON output
ev_fault_lookup.py
python3 scripts/ev_fault_lookup.py search <keyword> # Search EV fault families
python3 scripts/ev_fault_lookup.py oem <brand> <code-or-family> # Match OEM EV/hybrid family
python3 scripts/ev_fault_lookup.py system <hv_battery|inverter|charge|thermal> # List by EV subsystem
python3 scripts/ev_fault_lookup.py --json <command> <args> # JSON output
nhtsa_lookup.py
python3 scripts/nhtsa_lookup.py vin <VIN> # Decode VIN
python3 scripts/nhtsa_lookup.py recalls <make> <model> <year> # Recalls by vehicle
python3 scripts/nhtsa_lookup.py recalls-vin <VIN> # Recalls by VIN
python3 scripts/nhtsa_lookup.py complaints <make> <model> <year> # NHTSA complaints
python3 scripts/nhtsa_lookup.py investigations <make> <model> <year> # NHTSA investigations
python3 scripts/nhtsa_lookup.py tsbs <make> <model> <year> # NHTSA TSBs
python3 scripts/nhtsa_lookup.py tsbs <make> <model> <year> --keyword "misfire" --component "ENGINE" --limit 5
python3 scripts/nhtsa_lookup.py --json <command> <args> # JSON output
epa_lookup.py
python3 scripts/epa_lookup.py makes <year> # List makes for year
python3 scripts/epa_lookup.py search <year> <make> # Search models
python3 scripts/epa_lookup.py specs <vehicle_id> # Vehicle specs
python3 scripts/epa_lookup.py compare <id1> <id2> # Compare vehicles
python3 scripts/epa_lookup.py --json <command> <args> # JSON output
Vehicle-Specific Considerations
Motorcycles / Powersports
- Chain maintenance: clean, lube, adjust every 500-1000 miles
- Valve adjustment intervals vary widely (check service manual)
- Carbureted bikes: jets, float height, sync
- Coolant vs air-cooled: different overheating diagnostics
RVs
- Chassis vs coach: two separate electrical systems
- Generator diagnostics: hours-based maintenance
- Roof inspection critical (water intrusion)
- LP system leak testing (soap solution on fittings)
- Slide-out mechanism: hydraulic vs electric
Boats / Marine
- Raw water vs freshwater cooling systems
- Winterization critical (freeze damage)
- Lower unit gear oil: check for water contamination (milky = water intrusion through seals)
- Impeller replacement: annual or per manufacturer schedule
- Fuel stabilizer required for storage
Diesel Engines
- Glow plug system (no spark plugs)
- DEF (Diesel Exhaust Fluid) system issues
- DPF (Diesel Particulate Filter) regeneration
- Fuel system priming after filter change or running out of fuel
- Injector coding/programming may be required after replacement
Electric / Hybrid Vehicles
- 12V auxiliary battery still exists and can fail
- Regenerative braking affects brake wear patterns
- High-voltage battery degradation diagnostics
- Inverter/charger fault codes are manufacturer-specific
- Coolant systems for battery packs (separate from cabin HVAC)
- Charge faults can be AC-only, DC-only, or both; always separate those paths
- Battery thermal limits can look like a charging problem or a reduced-power problem
- Use
references/ev-safety-and-scope.mdbefore giving procedural guidance beyond low-voltage checks
--- README.md ---
Vehicle Diagnostics Skill
Use when diagnosing vehicle problems from symptoms or DTC codes, checking recalls or NHTSA complaints, decoding a VIN, interpreting OBD-II data, researching known issues for a specific vehicle, looking up repair procedures, torque specs, or fluid specs, or providing step-by-step repair guidance for cars, trucks, motorcycles, RVs, boats, ATVs, and dirt bikes.
What this repo contains
SKILL.md— the primary agent skill definition and workflow.references/— supporting playbooks, platform rules, examples, or data used by the skill.- `script
...
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分