### Sign-Ups Schedule Configuration Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/concepts/scheduling-locations/guide.md This example demonstrates configuration fields for schedules in Sign-Ups, such as minimum, desired, and maximum capacity, along with location and schedule identifiers. Verify the model in your installed Rock version as Sign-Ups evolve. ```csharp Reference for Sign-Ups ``` -------------------------------- ### Lava Style Guide: Basic If/Else Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_lava_docs.md Demonstrates basic conditional logic using the if/else syntax within Lava. Indentation should be 4 spaces, and tabs should not be used. ```lava {% if Person.NickName %} Hello {{ Person.NickName }} ! {% else %} Hello there! {% endif %} ``` -------------------------------- ### Commit Style Guide Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_developer.md Shows an example of a commit message following the specified style guide, including proper casing and punctuation. ```text + (Core) Fixed the PageListAsBlocks Lava template in the Flat and Stark themes.... ``` -------------------------------- ### SQL Style Guide Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_developer.md An example demonstrating SQL formatting conventions, including aliasing and string concatenation for column names. ```sql SELECT g.[Id] ,g.[Name] + ' Group' AS [GroupName] ,g.[Guid] ,gt.[Name] FROM [Group] g INNER JOIN [GroupType] gt ON gt.[Id] = g.[GroupTypeId] WHERE gt.[Id] = 12 ; ``` ```sql INSERT INTO [Group] ([Name], [IsSystem], [Guid]) VALUES ('Ted Decker Group', 0, NEWID()) ``` -------------------------------- ### Quick Start Commands Source: https://github.com/one-all-church/rock-agent-kb/blob/main/README.md Run these commands to quickly set up and test the Rock RMS Agent KB. ```bash uv sync --extra dev uv run kb status uv run kb build --dry-run uv run kb audit all uv run --extra dev pytest ``` -------------------------------- ### SQL Style Guide Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_community_site.md Illustrates SQL formatting conventions with an example that includes aliasing, string concatenation, and INSERT statements with values. ```sql SELECT g.[Id] , g.[Name] + ' Group' AS [GroupName] , g.[Guid] , gt.[Name] FROM [Group] g INNER JOIN [GroupType] gt ON gt.[Id] = g.[GroupTypeId] WHERE gt.[Id] = 12 ; INSERT INTO [Group] ([Name], [IsSystem], [Guid]) VALUES ('Ted Decker Group', 0,... ``` -------------------------------- ### Run Media Understanding Preparation Source: https://github.com/one-all-church/rock-agent-kb/blob/main/docs/runbooks/local-transcription.md Prepares media for understanding tasks using the specified tool. ```bash uv run kb media understand-prepare --tool gemma4-12b ``` -------------------------------- ### Rock-KB CLI Usage Examples Source: https://github.com/one-all-church/rock-agent-kb/blob/main/clients/python/README.md Demonstrates common commands for searching, retrieving information, viewing claims and workflows, accessing the dashboard, and managing MCP configuration using the rock-agent-kb client. ```bash uvx rock-kb search "check-in labels not printing" uvx rock-kb get check-in uvx rock-kb claims workflows --min-tier source_backed uvx rock-kb dashboard uvx rock-kb mcp-config ``` -------------------------------- ### Adaptive Message Lava Command Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_community_site.md Retrieves personalized adaptive messages for an individual using the adaptivemessage Lava command. This example shows how to get up to two matching adaptations for the 'giving' message type. ```lava {% adaptivemessage "giving" %} ``` -------------------------------- ### Display KB Help Source: https://github.com/one-all-church/rock-agent-kb/blob/main/docs/decisions/incremental-architecture-refactor-goal.md Shows the help information for the knowledge base CLI, ensuring it fits on one screen. ```bash uv run kb --help ``` -------------------------------- ### Campus Picker Rock FieldContainer Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/sources/rock_developer.md Demonstrates how to use the Rock:CampusPicker within a Rock:FieldContainer for selecting a campus. The example shows setting a label, specifying if it's required, and pre-selecting a value using its GUID. ```C# ``` -------------------------------- ### Sync Media and Run Media Discovery Commands Source: https://github.com/one-all-church/rock-agent-kb/blob/main/tools/kb/README.md Use these commands to synchronize media and discover media content from different sources like podcasts, RockU lessons, and community hubs. The `--limit` and `--include-empty` flags can control the scope of discovery. ```bash uv sync --extra media ``` ```bash uv run kb media-discover --source rock_podcast_rss ``` ```bash uv run kb media-discover --source rock_rocku --limit 25 --include-empty ``` ```bash uv run kb media-discover --source rock_community_hubs --include-empty ``` -------------------------------- ### Build Guide Intel and Refresh Guide Source: https://github.com/one-all-church/rock-agent-kb/blob/main/docs/runbooks/pipeline-overview.md Commands to build guide intelligence and refresh the authored guide. These are used after source scrapes, transcript batches, or promotions to update guide content and open questions. ```bash kb build --stage guide-intel ``` ```bash kb build --stage guide-intel ``` -------------------------------- ### Get Group Tool Example (C#) Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/concepts/developer-resources/index.md Demonstrates how to load an entity using the AgentToolHelper for error checking when retrieving a group. ```csharp public IAgentToolResult GetGroup( string groupIdKey ) { var helper = new AgentToolHelper( AgentRequestContext, _logger ); var group = helper.GetGroup( groupIdKey ); return helper.CreateResult( group ); } ``` -------------------------------- ### Show Until Shortcode Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/concepts/lava/index.md The 'showuntil' block shortcode displays content only until a specified condition is met. It requires a start and end tag. ```Lava {[ showuntil ]} Content that will disappear {[ end showuntil ]} ``` -------------------------------- ### Lava Cache Command Example Source: https://github.com/one-all-church/rock-agent-kb/blob/main/knowledge/concepts/system-admin-ops/guide.md Demonstrates the basic syntax for using the Lava cache command with a key and duration. Ensure exact syntax and variable names are verified in the live template. ```liquid {% cache key:'group-list' duration:'3600' %} ``` -------------------------------- ### Install Optional Serve Dependency Source: https://github.com/one-all-church/rock-agent-kb/blob/main/docs/runbooks/agent-serving.md Installs the optional 'serve' dependency required for agent serving. ```bash uv sync --extra serve ```