What I do
I analyze the current project's file structure to detect technologies (Node.js, Flutter, Android, iOS) and ensure the .opencodeignore file exists and contains the necessary exclusion rules.
How to use me
- •Analyze: List the files in the root directory to detect the technology stack.
- •Node.js: Look for
package.json,node_modules,yarn.lock, orpnpm-lock.yaml. - •Flutter/Dart: Look for
pubspec.yaml,lib/main.dart, or.dart_tool. - •Mobile: Look for
android/orios/directories.
- •Node.js: Look for
- •Read: Read the existing
.opencodeignorefile (if it exists). - •Update: Append missing rules from the "Master Template" below. Do not remove existing rules or overwrite the file entirely; only append new sections or lines that are not present.
- •Report: Tell the user which rules or sections were added.
Master Template
Use the following rules based on the detection logic above.
Always Include (Base Rules)
text
# ========================================== # Environment & Secrets (CRITICAL) # ========================================== .env .env.* !.env.example secrets.yaml *-local.js # ========================================== # IDE & System Trash # ========================================== .DS_Store Thumbs.db .vscode/ .idea/ *.swp *.log .history/
Include if Node.js / TypeScript detected
code
```Plaintext # ========================================== # JavaScript / TypeScript (Node.js) # ========================================== node_modules/ dist/ build/ out/ .npm/ .eslintcache .prettiercache tsbuildinfo package-lock.json yarn.lock pnpm-lock.yaml
Include if Flutter / Dart detected
code
Plaintext # ========================================== # Flutter / Dart # ========================================== .dart_tool/ .flutter-plugins .flutter-plugins-dependencies .packages build/ # If you use generated code (Freezed/JSON Serializable) # and don't want the AI to "read" it: *.freezed.dart *.g.dart
Include if Mobile (Android/iOS) detected
code
Plaintext # ========================================== # Mobile Specific (iOS/Android) # ========================================== .gradle/ local.properties *.keystore *.jks .cxx/ android/app/debug/ android/app/release/ ios/Pods/ ios/.symlinks/ ios/Flutter/Generated.xcconfig ios/Flutter/flutter_export_environment.sh