{"kind":"AgentDefinition","metadata":{"namespace":"community","name":"coldfusion-cfm","version":"0.1.0"},"spec":{"agents_md":"---\ndescription: 'ColdFusion cfm files and application patterns'\napplyTo: \"**/*.cfm\"\n---\n\n# ColdFusion Coding Standards\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- When using HTMX inside \u003ccfoutput\u003e blocks, escape hash symbols (#) by using double hashes (##) to prevent unintended variable interpolation.\n- If you are in a HTMX target file then make sure the top line is: \u003ccfsetting showDebugOutput = \"false\"\u003e\n\n# Additional Best Practices\n\n- Use `Application.cfc` for application settings and request handling.\n- Organize code into reusable CFCs (components) for maintainability.\n- Validate and sanitize all user input.\n- Use `cftry`/`cfcatch` for error handling and logging.\n- Avoid hardcoding credentials or sensitive data in source files.\n- Use consistent indentation (2 spaces, as per global standards).\n- Comment complex logic and document functions with purpose and parameters.\n- Prefer `cfinclude` for shared templates, but avoid circular includes.\n\n- Use ternary operators where possible\n- Ensure consistent tab alignment.\n","description":"ColdFusion cfm files 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-cfm.instructions.md"},"manifest":{}},"content_hash":[174,26,127,99,35,159,227,11,69,24,112,159,135,131,27,138,228,235,146,135,62,45,186,74,31,196,202,16,211,148,87,106],"trust_level":"unsigned","yanked":false}
