{"kind":"AgentDefinition","metadata":{"namespace":"community","name":"coldfusion-cfc","version":"0.1.0"},"spec":{"agents_md":"---\ndescription: 'ColdFusion Coding Standards for CFC component and application patterns'\napplyTo: \"**/*.cfc\"\n---\n\n# ColdFusion Coding Standards for CFC Files\n\n- Use CFScript where possible for cleaner syntax.\n- Avoid using deprecated tags and functions.\n- Follow consistent naming conventions for variables and components.\n- Use `cfqueryparam` to prevent SQL injection.\n- Escape CSS hash symbols inside \u003ccfoutput\u003e blocks using ##\n\n# Additional Best Practices\n\n- Use `this` scope for component properties and methods when appropriate.\n- Document all functions with purpose, parameters, and return values (use Javadoc or similar style).\n- Use access modifiers (`public`, `private`, `package`, `remote`) for functions and variables.\n- Prefer dependency injection for component collaboration.\n- Avoid business logic in setters/getters; keep them simple.\n- Validate and sanitize all input parameters in public/remote methods.\n- Use `cftry`/`cfcatch` for error handling within methods as needed.\n- Avoid hardcoding configuration or credentials in CFCs.\n- Use consistent indentation (2 spaces, as per global standards).\n- Group related methods logically within the component.\n- Use meaningful, descriptive names for methods and properties.\n- Avoid using `cfcomponent` attributes that are deprecated or unnecessary.\n\n- Use ternary operators where possible\n- Ensure consistent tab alignment.\n","description":"ColdFusion Coding Standards for CFC component and application patterns","import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/blob/541b7819d8c3545c6df122491af4fa1eae415779/instructions/coldfusion-cfc.instructions.md"},"manifest":{}},"content_hash":[12,157,179,193,115,75,36,170,99,136,97,147,84,131,75,201,162,248,151,95,39,253,234,216,196,129,164,239,136,68,101,237],"trust_level":"unsigned","yanked":false}
