{"id":47383343,"url":"https://github.com/semgrep/ai-best-practices","last_synced_at":"2026-07-13T07:03:43.016Z","repository":{"id":341982154,"uuid":"1172074065","full_name":"semgrep/ai-best-practices","owner":"semgrep","description":"Semgrep Pro Rules to ensure code using LLMs is following best practices","archived":false,"fork":false,"pushed_at":"2026-03-25T21:40:22.000Z","size":138,"stargazers_count":71,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T16:46:26.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semgrep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-03T23:13:06.000Z","updated_at":"2026-05-04T22:15:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/semgrep/ai-best-practices","commit_stats":null,"previous_names":["semgrep/ai-best-practices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/semgrep/ai-best-practices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fai-best-practices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fai-best-practices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fai-best-practices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fai-best-practices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semgrep","download_url":"https://codeload.github.com/semgrep/ai-best-practices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fai-best-practices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35413543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-03-19T16:00:38.421Z","updated_at":"2026-07-13T07:03:42.999Z","avatar_url":"https://github.com/semgrep.png","language":null,"funding_links":[],"categories":["Attack Techniques \u0026 Red Teaming"],"sub_categories":["LLM \u0026 GenAI Red Teaming"],"readme":"# AI Best Practices — Semgrep Rules\n\n\u003e **This repository has been deprecated.** All rules have been migrated to the official Semgrep registry.\n\n## Where to find the rules\n\nThe rules now live in the official Semgrep rules repository:\n\n**Source:** [github.com/semgrep/semgrep-rules/tree/develop/ai/ai-best-practices](https://github.com/semgrep/semgrep-rules/tree/develop/ai/ai-best-practices)\n\n**Rule pack:** [semgrep.dev/p/ai-best-practices](https://semgrep.dev/p/ai-best-practices)\n\n## Quick Start\n\n```bash\npip install semgrep\nsemgrep --config \"p/ai-best-practices\" /path/to/your/project/\n```\n\n## CI/CD Integration\n\n### GitHub Actions\n\n```yaml\nname: AI Safety Lint\non: [pull_request]\n\njobs:\n  semgrep:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: semgrep/semgrep-action@v1\n        with:\n          config: \"p/ai-best-practices\"\n```\n\n### GitLab CI\n\n```yaml\nsemgrep:\n  image: semgrep/semgrep\n  script:\n    - semgrep --config \"p/ai-best-practices\" --error .\n  rules:\n    - if: $CI_MERGE_REQUEST_IID\n```\n\n## License\n\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Fai-best-practices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemgrep%2Fai-best-practices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Fai-best-practices/lists"}