Module prompts

Module prompts 

Source
Expand description

Embedded prompts for the Syncable agent

This module provides task-specific prompts for different generation tasks:

  • Docker generation (Dockerfile, docker-compose.yml)
  • Terraform generation
  • Helm chart generation
  • Kubernetes manifests

Prompts are structured using XML-like sections inspired by forge for clarity:

  • <agent_identity> - Who the agent is and its specialization
  • <tool_usage_instructions> - How to use tools effectively
  • <non_negotiable_rules> - Rules that must always be followed
  • <error_reflection_protocol> - How to handle errors without self-doubt
  • <thinking_guidelines> - How to reason without “oops” patterns

Constants§

DOCKER_GENERATION
Docker generation prompt with self-correction protocol
HELM_STANDARDS
Get prompt for Helm-specific generation
TERRAFORM_STANDARDS
Get prompt for Terraform-specific generation

Functions§

get_analysis_prompt
Get the base system prompt for general analysis
get_code_development_prompt
Get the code development prompt for implementing features, translating code, etc.
get_devops_prompt
Get the DevOps generation prompt (Docker, Terraform, Helm, K8s)
get_planning_prompt
Get the planning mode prompt (read-only exploration)
is_code_development_query
Detect if a query is specifically about code development (not DevOps)
is_generation_query
Detect if a query is asking for generation vs analysis
is_plan_continuation_query
Detect if a query is asking to continue/resume an incomplete plan