{"id":29023024,"url":"https://github.com/bamlab/flutter-ai-rules","last_synced_at":"2026-02-04T15:03:41.787Z","repository":{"id":287167097,"uuid":"956732341","full_name":"bamlab/flutter-ai-rules","owner":"bamlab","description":"ai rules we use to generate flutter code. Made by Theodo apps ❤️💙💛","archived":false,"fork":false,"pushed_at":"2025-05-05T08:22:10.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T03:05:00.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bamlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-28T19:03:26.000Z","updated_at":"2025-05-05T08:22:14.000Z","dependencies_parsed_at":"2025-05-06T05:47:26.924Z","dependency_job_id":null,"html_url":"https://github.com/bamlab/flutter-ai-rules","commit_stats":null,"previous_names":["bamlab/flutter-ai-rules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bamlab/flutter-ai-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Fflutter-ai-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Fflutter-ai-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Fflutter-ai-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Fflutter-ai-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamlab","download_url":"https://codeload.github.com/bamlab/flutter-ai-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Fflutter-ai-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29088419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T03:05:00.518Z","updated_at":"2026-02-04T15:03:41.751Z","avatar_url":"https://github.com/bamlab.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter-ai-rules\n\n**Disclamer:** This is an experimentation for sharing cursor rules between several flutter projects. \u003cbr\u003e\nWe are currently using this repository to iterate on the sharing system and on the rules themselves.\n\n\u003e ⚠ **Important!** Cursor rules currently don't work well in workspace mode : Only the first folder (in alphabetical order) is detected. It should work in most case for the app folder if you name it \"Application\" (or anything with an \"a\"), but not for the other repositories of your monorepo \u003cbr\u003e\n\u003e Source : https://forum.cursor.com/t/cursor-rules-files-for-multi-project-workspace/48086\n\nYou have 2 options for fetching the rules in your project:\n\n## Manual download\n\nmanually download the `flutter-shared-rules.mdc` file in a `.cursor/rules` folder\n\n\u003e ✅ Simple setup \u0026 project management. \u003cbr\u003e\n\u003e ❌ Need to do it again each time the file is updated, for all your projects.\n\n## Automated fetch\n\n- In the `melos.yaml` file of the project (replace `\u003capp folder\u003e` by your app folder's name):\n\n```\n    bootstrap:\n        [...]\n        hooks:\n            post: melos fetch_ai_rules\n    [...]\n    scripts:\n        [...]\n        fetch_ai_rules:\n            run: |\n            mkdir -p \u003capp folder\u003e/.cursor/rules/shared \u0026\u0026 \\\n            curl -L -s https://raw.githubusercontent.com/bamlab/flutter-ai-rules/refs/heads/main/flutter-shared-rules.mdc -o \u003capp folder\u003e/.cursor/rules/shared/flutter-shared-rules.mdc\n            description: Fetch AI rules\n```\n\n\u003e ✅ Simple setup \u0026 project management. \u003cbr\u003e\n\u003e ✅ Rules are updated at each `melos bootstrap`. \u003cbr\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n---\n\ndeprecated\n\n\u003cdetails\u003e\n\u003csummary\u003e\n Automated fetch - if this repository is private\n\u003c/summary\u003e\n\n- In the project where you want to add the rules (replace `\u003capp folder\u003e` by your app folder's name):\n\n```\ngit submodule add git@github.com:bamlab/flutter-ai-rules.git \u003capp folder\u003e/.cursor/rules/shared \u0026\u0026 git submodule update --remote --init -- \u003capp folder\u003e/.cursor/rules/shared \u0026\u0026 git commit -m \"devx(cursor) create cursor rules submodule\"\n```\n\n- In the `melos.yaml` file of the project (replace `\u003capp folder\u003e` by your app folder's name):\n\n```\n    bootstrap:\n        [...]\n        hooks:\n            post: melos fetch_ai_rules\n    [...]\n    scripts:\n        [...]\n        fetch_ai_rules:\n            run: |\n            git submodule update --remote --merge -- \u003capp folder\u003e/.cursor/rules/shared\n            description: Fetch AI rules\n```\n\n\u003e ✅ Rules are updated at each `melos bootstrap`. \u003cbr\u003e\n\u003e ❌ Every dev on the project must have access to this repo, or will see some error after running `melos bootstrap`. \u003cbr\u003e\n\u003e 🟠 When committing the rules changes on the project, the commit is unreadable. Nevertheless, this change has already been reviewed on this repository\u003cbr\u003e\n\n\u003e 💡 If you want to interact manually with the submodule, be aware that git submodules badly support adding submodules in folders that begin by `.`. If you do so, you must always specify `-- \u003csubmodule path\u003e` in your `git submodule` commands. You can also run `cd \u003csubmodule path\u003e` and use regular git commands, it will work well. Don't push anything on this rules repository though\u003cbr\u003e\n\n\u003e 💡 If you use the \"source control\" view of vscode, you can see a new section after adding the submodule. You can easily close it with a right click on its header.\n\n### clean this installation\n\nat the root of your project:\n\n- remove the submodule from `.gitmodules`\n- remove the submodule from `.git/modules`\n  - by default, `.git` is not visible in vscode: open finder and show hidden files (`cmd`+`shift`+`.`)\n  \u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Fflutter-ai-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamlab%2Fflutter-ai-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Fflutter-ai-rules/lists"}