원클릭으로
content-and-shortcodes
Protocols for handling content, shortcodes, YAML frontmatter, and Twig within StaticForge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Protocols for handling content, shortcodes, YAML frontmatter, and Twig within StaticForge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Critical security and deployment protocols for editing code, handling credentials, and publishing StaticForge.
Architectural guidelines for developing new self-contained Features in StaticForge.
Development workflow for StaticForge using strict PHP and the Lando environment wrapper.
| name | content-and-shortcodes |
| description | Protocols for handling content, shortcodes, YAML frontmatter, and Twig within StaticForge. |
| applyTo | content/**/*.md, templates/**/*.twig |
This skill dictates how to process, sanitize, and inject content/ input and Twig template logic safely and properly.
Format Requirements:
Content must be authored as .md or .html inside content/ and must include a YAML frontmatter block for metadata mapping.
Template Variables:
Twig templates should avoid overly complex logic. Logic belongs in Features, while presentation bindings belong in Twig ({{ variable }}). Look into TemplateVariableBuilder and BaseRendererFeature when mapping variables to Twig output.
Input Sanitization & Output Encoding:
All user inputs from content frontmatter variables must be sanitized before being mapped to layouts. Use the EiccUtils sanitation patterns and ensure proper CSRF protection handles any generated HTML forms.
Event Lifecycle Hooks for Shortcodes:
When implementing custom shortcodes inside the code (PRE_RENDER), ensure they inject correctly over the HTML/Markdown prior to full transformation (RENDER). Maintain strict string replacements. Do not assume HTML encoding. Always check against missing variables so a build process doesn't fatal due to incomplete frontmatter.