Skip to content

[DOCS]: Document ~/.claude/CLAUDE.md compatibility behavior #8265

@zeke

Description

@zeke

Problem

OpenCode has Claude Code compatibility features that are inconsistently documented:

Feature Documented? Where?
~/.claude/skills/ Yes Skills docs
.claude/skills/ (project) Yes Skills docs
~/.claude/CLAUDE.md No -
Project-level CLAUDE.md No -
OPENCODE_DISABLE_CLAUDE_CODE* env vars Partially CLI docs (env var table only)

The Rules documentation mentions CLAUDE.md only as a comparison ("similar to CLAUDE.md or Cursor's rules") but doesn't explain that OpenCode actually reads these files.

Affected Code

Proposed Changes

Update the Rules documentation to:

  1. Mention that CLAUDE.md works as an alternative to AGENTS.md (project-level)
  2. Document ~/.claude/CLAUDE.md support (global)
  3. Add a "Claude Code Compatibility" section that consolidates all compatibility features
  4. Document all three OPENCODE_DISABLE_CLAUDE_CODE* environment variables
  5. Cross-reference the Skills documentation for ~/.claude/skills/

Related Issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions