summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-07-08 18:30:46 -0500
committerGitHub <[email protected]>2025-07-08 18:30:46 -0500
commitd2a9b2f64a8a8172ffc9767637b3a790e395e013 (patch)
tree79929e03a049acfdf0a030538c89a98ee3c8bdfd
parentaacadd8a8aabf3d39f38561d1783cae83ea67e68 (diff)
downloadopencode-d2a9b2f64a8a8172ffc9767637b3a790e395e013.tar.gz
opencode-d2a9b2f64a8a8172ffc9767637b3a790e395e013.zip
fix: documentation typo (#781)
-rw-r--r--packages/web/src/content/docs/docs/rules.mdx15
1 files changed, 3 insertions, 12 deletions
diff --git a/packages/web/src/content/docs/docs/rules.mdx b/packages/web/src/content/docs/docs/rules.mdx
index b1b55b026..3249cc3f8 100644
--- a/packages/web/src/content/docs/docs/rules.mdx
+++ b/packages/web/src/content/docs/docs/rules.mdx
@@ -81,23 +81,14 @@ If you have both global and project-specific rules, opencode will combine them t
## Custom Instructions
-You can also specify custom instruction files using the `instructions` configuration in your `opencode.json` or global `~/.config/opencode/config.json`:
+You can specify custom instruction files in your `opencode.json` or the global `~/.config/opencode/config.json`. This allows you and your team to reuse existing rules rather than having to duplicate them to AGENTS.md.
-```json title="opencode.json"
-{
- "$schema": "https://opencode.ai/config.json",
- "instructions": [".cursor/rules/*.md"]
-}
-```
-
-You can specify multiple files like `CONTRIBUTING.md` and `docs/guidelines.md`, and use glob patterns to match multiple files.
-
-For example, to reuse your existing Cursor rules:
+Example:
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
- "instructions": [".cursor/rules/*.md"]
+ "instructions": ["CONTRIBUTING.md", "docs/guidelines.md", ".cursor/rules/*.md"]
}
```