Instructions: Copy this template, fill in the placeholders marked with <>, and use with Claude CLI.
Extract and condense documentation for <TOPIC_NAME> from the Fulcro RAD Developer's Guide into a succinct, accurate, LLM-friendly markdown file.
/workspace/docs/DevelopersGuide.adoc/workspace/docs/ai/<OUTPUT_FILENAME>.mdAll information must be verified against source code in /workspace/src/main/com/fulcrologic/rad/:
defattr, defsc-form, defsc-report signatures*-options namespaces (e.g., attributes-options.cljc)attributes.cljc - Core attribute definitionsattributes-options.cljc - Attribute option definitionsform.cljc - Form implementationform-options.cljc - Form optionsreport.cljc - Report implementationreport-options.cljc - Report options
<ADD_TOPIC_SPECIFIC_FILES><TOPIC_SPECIFIC_INSTRUCTIONS>
Example for Attributes:
defattr macro usageYour output markdown must include:
Brief explanation of what this aspect of RAD does and why it matters.
Key ideas with minimal but sufficient explanation. Use subheadings.
Simple, working code examples that demonstrate the fundamentals.
Real-world usage patterns that developers will encounter frequently.
Non-obvious behaviors, gotchas, or critical information.
More complex scenarios or patterns.
Links to other AI doc files and relevant source files.
List key source files with line numbers where relevant code exists.
Before finalizing:
# <Topic Name>
## Overview
Brief explanation (2-4 sentences) of what this is and why it matters.
## Core Concept 1
Explanation with example:
\`\`\`clojure
;; From attributes.cljc:189-192
(defattr id :item/id :uuid
{::attr/identity? true
::attr/schema :production})
\`\`\`
## Core Concept 2
...
## Common Patterns
### Pattern 1: ...
\`\`\`clojure
;; Example code
\`\`\`
## Important Notes
- Critical detail 1
- Gotcha with explanation
## Related Topics
- See [02-relationships-cardinality.md](02-relationships-cardinality.md)
- Source: `attributes.cljc:54-92`
## Source References
- **Primary**: `com.fulcrologic.rad.attributes` (attributes.cljc)
- **Options**: `com.fulcrologic.rad.attributes-options` (attributes-options.cljc)
- **Key functions**: `defattr` (54), `new-attribute` (29)
Run this prompt:
claude --session-id ai-docs-<topic-slug> --print < topic-prompt.md
Or if already started:
claude --session-id ai-docs-<topic-slug> --resume
Fill in these before using:
<TOPIC_NAME>: Human-readable topic name<START_LINE>: Starting line in DevelopersGuide.adoc<END_LINE>: Ending line in DevelopersGuide.adoc<OUTPUT_FILENAME>: Target markdown filename<ADD_TOPIC_SPECIFIC_FILES>: Additional source files to check<TOPIC_SPECIFIC_INSTRUCTIONS>: Detailed focus areas for this topic<topic-slug>: Lowercase-hyphenated session identifierCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |