Skip to content

Add CLAUDE.md and .claude/ agent configuration - #367

Open
simple-agent-manager[bot] wants to merge 4 commits into
mainfrom
claude/agent-config-setup
Open

Add CLAUDE.md and .claude/ agent configuration#367
simple-agent-manager[bot] wants to merge 4 commits into
mainfrom
claude/agent-config-setup

Conversation

@simple-agent-manager

Copy link
Copy Markdown
Contributor

Summary

  • Adds a comprehensive CLAUDE.md with project-specific conventions for AI agents working in the defang-docs repo
  • Creates .claude/settings.json with basic project metadata
  • Covers Docusaurus 3 framework details, directory structure, build pipeline, content conventions, style guide, CLI doc accuracy requirements, and SAM integration guidance

Details

The CLAUDE.md documents:

  • Project overview: Docusaurus 3, Tailwind CSS, Algolia search
  • Directory structure: All key directories and their purposes
  • Build pipeline: npm run start/build commands and the prebuild step that auto-generates CLI docs from the Go CLI source and ingests samples
  • Content conventions: Frontmatter format, file naming (kebab-case), sidebar configuration (autogenerated from directories), MDX component usage, internal linking patterns
  • Style guide: Second person, present tense, prerequisites sections, CLI accuracy requirements
  • CI/CD: PR test-deploy and main branch deploy workflows
  • SAM integration: Ephemeral environment awareness, expose_port for dev server preview, update_task_status at milestones, verification discipline against actual CLI/Portal behavior

Test plan

  • Review CLAUDE.md content for accuracy against current project conventions
  • Verify build/dev commands are correct
  • Confirm directory structure matches reality
  • Check that SAM guidance is appropriate

🤖 Generated with Claude Code

Comprehensive project context for AI agents including:
- Docusaurus 3 framework details and directory structure
- Build/dev/preview commands and prebuild pipeline
- Content conventions (frontmatter, MDX, sidebar config)
- Style guide and CLI doc accuracy requirements
- SAM integration guidance for ephemeral environments

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simple-agent-manager
simple-agent-manager Bot requested a review from a team as a code owner April 17, 2026 09:48
raphaeltm and others added 3 commits April 17, 2026 10:44
Replace reference to private repo path with functional description.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread CLAUDE.md
Comment on lines +262 to +283
### SAM Tool Usage

| Tool | When to Use |
|------|-------------|
| `update_task_status` | After completing milestones (e.g., "drafted new tutorial", "fixed broken links") |
| `expose_port` | When running `npm run start` (port 3000) so humans can preview the dev server |
| `create_idea` | When you discover doc improvements, missing content, or broken links during work |
| `search_messages` | To find context from prior conversations about doc changes |

### Knowledge Graph

SAM maintains a persistent knowledge graph across sessions. Use it to preserve non-obvious context:

| Tool | When to Use |
|------|-------------|
| `add_knowledge` | Store observations about user preferences (entityType: `preference`), content conventions not in CLAUDE.md (entityType: `style`), architecture decisions (entityType: `context`), or project context like feature launches and deprecations (entityType: `context`) |
| `search_knowledge` | Before key decisions — e.g., search "ContentStyle" before writing docs, search "PlaygroundDeprecation" before referencing Playground |
| `update_knowledge` / `remove_knowledge` | Fix stale or incorrect observations |
| `confirm_knowledge` | When you verify an existing observation is still accurate |

Do NOT store: content derivable from the docs themselves, git history, ephemeral task details, or anything already in CLAUDE.md.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove SAM specific text from generic CLAUDE.md

Comment thread CLAUDE.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be renamed AGENTS.md to make other harnesses pick it up too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants