{"id":51336951,"url":"https://github.com/zhanhuajie/csharp-decompiler-skills","last_synced_at":"2026-07-02T03:32:39.941Z","repository":{"id":351444644,"uuid":"1210271056","full_name":"zhanhuajie/csharp-decompiler-skills","owner":"zhanhuajie","description":"A collection of agent-agnostic AI skills for C# assembly decompilation and symbol lookup. ","archived":false,"fork":false,"pushed_at":"2026-04-15T03:44:18.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T04:08:55.661Z","etag":null,"topics":["csharp","decompiler","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhanhuajie.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":null,"dco":null,"cla":null}},"created_at":"2026-04-14T08:47:05.000Z","updated_at":"2026-04-15T03:44:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zhanhuajie/csharp-decompiler-skills","commit_stats":null,"previous_names":["zhanhuajie/csharp-decompiler-skills"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zhanhuajie/csharp-decompiler-skills","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanhuajie%2Fcsharp-decompiler-skills","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanhuajie%2Fcsharp-decompiler-skills/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanhuajie%2Fcsharp-decompiler-skills/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanhuajie%2Fcsharp-decompiler-skills/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhanhuajie","download_url":"https://codeload.github.com/zhanhuajie/csharp-decompiler-skills/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanhuajie%2Fcsharp-decompiler-skills/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35032145,"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-02T02:00:06.368Z","response_time":173,"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":["csharp","decompiler","dotnet"],"created_at":"2026-07-02T03:32:38.743Z","updated_at":"2026-07-02T03:32:39.931Z","avatar_url":"https://github.com/zhanhuajie.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csharp-decompiler-skills\n\n[中文](README.zh-CN.md)\n\nA collection of agent-agnostic AI skills for C# assembly decompilation and symbol lookup. These skills help you analyze .NET assemblies, reverse-engineer business logic, and quickly locate types by namespace and assembly.\n\n## Skills\n\n| Skill | Description |\n|-------|-------------|\n| [csharp-decompiler](csharp-decompiler/SKILL.md) | Decompile .NET IL assemblies (`.dll`, `.exe`) to C# source code. Supports listing types, decompiling specific types, and full project export. |\n| [csharp-definition-lookup](csharp-definition-lookup/SKILL.md) | Fast lookup of C# class definitions, namespaces, and assemblies from project references. Resolves NuGet packages via `project.assets.json`. |\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- [.NET SDK](https://dotnet.microsoft.com/download) installed\n- **ilspycmd** installed:\n  ```bash\n  dotnet tool install -g ilspycmd\n  ```\n- **dotnet-script** installed (required for `csharp-definition-lookup`):\n  ```bash\n  dotnet tool install -g dotnet-script\n  ```\n\n### Verify Installation\n\n```bash\ndotnet --version\nilspycmd --version\n```\n\n---\n\n## csharp-decompiler\n\nDecompile .NET assemblies to C# source code using `ilspycmd`.\n\n### List all types in an assembly\n\n```bash\nilspycmd -l s \u003cassembly_path\u003e\n```\n\n### Decompile a specific type\n\n**Windows (PowerShell):**\n```powershell\nilspycmd -t \u003cFullNamespace.ClassName\u003e \u003cassembly_path\u003e 2\u003e\u00261 \u003e C:\\temp\\MyType.cs\n```\n\n**Linux/macOS:**\n```bash\nilspycmd -t \u003cFullNamespace.ClassName\u003e \u003cassembly_path\u003e \u003e /tmp/MyType.cs 2\u003e\u00261\n```\n\n\u003e For nested classes, use `+` notation: `Namespace.OuterClass+InnerClass`\n\n\u003e **Note**: `ilspycmd` writes to stderr. Always use file redirection (`2\u003e\u00261 \u003e`) and read the output file — do not rely on terminal output.\n\n### Export the full project\n\n```bash\nilspycmd -p -o \u003coutput_directory\u003e \u003cassembly_path\u003e\n```\n\n---\n\n## csharp-definition-lookup\n\nLocate a type's namespace and DLL path from project references (`.csproj` / NuGet).\n\n### Basic usage\n\n```powershell\ndotnet script csharp-definition-lookup/scripts/TypeScanner.csx -- \u003cSymbolName\u003e --project \u003cPathToCsproj\u003e\n```\n\n### List all resolved references\n\n```powershell\ndotnet script csharp-definition-lookup/scripts/TypeScanner.csx -- \u003cSymbolName\u003e --project \u003cPathToCsproj\u003e --list-refs\n```\n\n### Additional options\n\n| Option | Description |\n|--------|-------------|\n| `--namespace \u003cprefix\u003e` | Filter results by namespace prefix (e.g., `Autodesk`). |\n| `--dll \u003cpath\u003e` | Search a specific DLL directly instead of resolving from `.csproj`. |\n\n\u003e Run `dotnet restore` first to generate `obj/project.assets.json` for NuGet resolution.\n\n---\n\n## Recommended Workflow\n\n```\nUnknown type location\n        │\n        ▼\ncsharp-definition-lookup   ──►  Outputs: full namespace + DLL path\n        │\n        ▼\ncsharp-decompiler           ──►  Outputs: full C# source / project structure\n```\n\n---\n\n## Repository Structure\n\n```\ncsharp-decompiler/\n  SKILL.md               # Skill description and usage (loaded by AI agents)\n\ncsharp-definition-lookup/\n  SKILL.md               # Skill description and usage (loaded by AI agents)\n  scripts/\n    TypeScanner.csx      # Complete lookup tool (resolves references + scans PE metadata)\n```\n\n---\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanhuajie%2Fcsharp-decompiler-skills","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhanhuajie%2Fcsharp-decompiler-skills","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanhuajie%2Fcsharp-decompiler-skills/lists"}