diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-21 23:08:57 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-21 23:08:57 +0800 |
| commit | cba2c0f63d86a3fff78ebea426cea7482e9aa406 (patch) | |
| tree | 0c62fac53c4ac7aecc2b1b0ab7fbb344af8aa531 | |
| parent | f183ad26f74ab5d037c0d709af34d9614c0c7d9b (diff) | |
new: opencode
| -rw-r--r-- | dot-config/opencode/AGENTS.md | 26 | ||||
| -rw-r--r-- | dot-config/opencode/opencode.json | 4 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dot-config/opencode/AGENTS.md b/dot-config/opencode/AGENTS.md new file mode 100644 index 00000000..e5c787ec --- /dev/null +++ b/dot-config/opencode/AGENTS.md @@ -0,0 +1,26 @@ +## Rules +### Not +- Do *NOT* add comments unless ABSOLUTELY necessary, no trivial comment or comments for every line. +- Do *NOT* make trivial functions or variables that are not needed or is only used once or code bloat. +- Do *NOT* touch existing comments. +- Do *NOT* hallucinate. +- Do *NOT* add additionally unnecessary stuff. + +### Do +- Do stick to the existing code style, conventions, patterns, and structure. +- Do make as little changes as possible. +- Do check for component/functions if you are not sure for a fact that it exists. +- Do check for anything if needed, time is not an issue. +- Do *fully* test the code if the user has provided a way to reliably test it. +- Do use types if possible and is convenient. +- Do change the plan when variable changes. +- Do read the README.* if exist to understand the project. +- Do reflect and revert/remove any code you've changed that is not necessary. +- Do run the formatter such as cargo fmt, or check Makefile etc. after you finished your changes + +## Formatting +- Use tab for indentation. +- Follow the Hungarian notation for appropriate language. + +## Think like a programmer, not a writer, not looking for perfection. + diff --git a/dot-config/opencode/opencode.json b/dot-config/opencode/opencode.json new file mode 100644 index 00000000..9ea2a42e --- /dev/null +++ b/dot-config/opencode/opencode.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://opencode.ai/config.json", + "share": "disabled" +} |
