From slim-rebranding
Generates customized Docusaurus documentation websites from project content. Analyzes structure, iteratively builds and validates, creates git branch and commits.
npx claudepluginhub nasa-ammos/slim --plugin slim-rebrandingThis skill uses the workspace's default tool permissions.
The SLIM Project Website Maker Skill is a comprehensive, semi-autonomous tool designed to generate professional Docusaurus documentation websites for any project. It analyzes your project content, creates intelligent customizations, and validates the website with iterative build testing to ensure everything works correctly.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
The SLIM Project Website Maker Skill is a comprehensive, semi-autonomous tool designed to generate professional Docusaurus documentation websites for any project. It analyzes your project content, creates intelligent customizations, and validates the website with iterative build testing to ensure everything works correctly.
Key Features:
None - This skill works standalone with any project. No marketplace dependencies required.
I will verify your project setup and gather requirements:
Git Repository Check:
Destination Directory:
Source Content Analysis (optional):
I will analyze your project to understand its purpose and structure:
When source directory is provided:
Content Discovery:
Project Understanding:
Analysis Report:
When no source directory is provided:
After analysis, I'll ask: "Proceed with website generation plan? (yes/no)"
I will generate a comprehensive website creation plan:
Using the website-generation-plan template (assets/website-generation-plan.md), I'll create a plan showing:
Plan Structure:
# Website Generation Plan: [Project Name]
## Summary
- Destination: [path]
- Source analysis: [Performed / Skipped]
- Project type: [Detected type(s)]
- Customization level: [AI-generated / Basic template]
## Website Structure
### Homepage
- Title: [Project Name]
- Description: [AI-generated summary]
- Key features: [List of highlights]
### Documentation Sections
| Section | Content | Source |
|---------|---------|--------|
| Getting Started | Installation, quick start | README analysis |
| User Guide | Usage patterns | Code analysis |
| Developer Docs | API, contributing | Project structure |
| ... | ... | ... |
### Navigation Configuration
- Main menu items: [List]
- Footer links: [List]
- Categories: [List]
## Customizations Applied
- Content population: [Details]
- Structure organization: [Details]
- Styling and branding: [Details]
## Git Strategy
Branch: website/[project-name]-docusaurus
Commits: 4 (setup, customization, content, validation)
## Build Validation Plan
1. Initial build test
2. Error detection and auto-fix loop (max 5 attempts)
3. Success confirmation
## Rollback Plan
git checkout main && git branch -D website/[branch-name]
I will present the plan and wait for your approval:
Options:
If "modify":
Only after explicit "yes" approval will I proceed to execution.
I will create a safe working branch:
Generate branch name:
website/[project-slug]-docusaurusCreate branch:
git checkout -b website/project-name-docusaurus
Verify branch creation successful
Inform you of the branch name
All changes will be isolated from your main branch.
I will clone and initialize the Docusaurus template:
git clone https://github.com/NASA-AMMOS/slim-docsite-template.git [destination-directory]
cd [destination-directory]
# Remove original git history
rm -rf .git
# Initialize fresh git repository
git init
git add .
git commit -m "Initial commit: Docusaurus template"
yarn install
Commit: "Website: Initialize Docusaurus template"
I will apply AI-generated customizations based on project analysis:
Using homepage-customization-guide (assets/homepage-customization-guide.md):
src/pages/index.js:
Commit: "Website: Customize homepage with project details"
Using docs-structure-guide (assets/docs-structure-guide.md):
Organize docs/ directory:
Populate content:
Commit: "Website: Create documentation structure and content"
Using config-customization-guide (assets/config-customization-guide.md):
Update docusaurus.config.js:
Update src/css/custom.css:
Commit: "Website: Configure site metadata and navigation"
I will run comprehensive build validation using build-validation-guide (assets/build-validation-guide.md):
CRITICAL: I will loop over the build process until it succeeds.
START BUILD VALIDATION LOOP:
Loop (max 5 attempts):
a. Run build command:
yarn build
b. If build SUCCEEDS โ BREAK LOOP, continue to finalization
c. If build FAILS:
i. Parse error output to identify issues:
- Dependency errors (missing packages)
- Configuration syntax errors (docusaurus.config.js)
- Content errors (broken MDX, invalid frontmatter)
- Path errors (broken links, missing files)
- React component errors
- Plugin configuration issues
ii. Attempt automatic fixes:
- Install missing dependencies
- Fix configuration syntax
- Repair MDX syntax errors
- Update broken links and paths
- Fix React component issues
- Adjust plugin configurations
- Revert problematic customizations if needed
iii. Commit fixes: "Website: Fix build errors (attempt N)"
iv. Re-run build (next loop iteration)
d. If max attempts reached (5) and still failing:
- Present errors to user
- Provide manual fix guidance
- Ask: "Continue despite build failures? (yes/no)"
- If yes โ proceed with warnings
- If no โ pause for manual intervention
END LOOP
Example Build Loop Execution:
Attempt 1: Running yarn build...
โ Build failed: Module not found: '@docusaurus/plugin-content-docs'
โ Installing missing dependencies...
โ Running yarn install...
โ Committed fixes
Attempt 2: Running yarn build...
โ Build failed: Invalid frontmatter in docs/intro.md
โ Fixing MDX syntax errors...
โ Corrected frontmatter format
โ Committed fixes
Attempt 3: Running yarn build...
โ Build failed: Broken link to /docs/nonexistent
โ Fixing broken links...
โ Updated 3 documentation links
โ Committed fixes
Attempt 4: Running yarn build...
โ Build successful (yarn build - 45s)
Loop complete after 4 attempts
Build Validation Results
========================
โ Template cloned successfully
โ Dependencies installed
โ Build successful after 4 attempts (yarn build - 45s)
- Attempt 1: Installed missing dependencies
- Attempt 2: Fixed MDX syntax errors
- Attempt 3: Fixed broken links
- Attempt 4: Build succeeded
โ Development server tested (http://localhost:3000)
โ All navigation links working
โ Content renders correctly
Status: PASS
Build Loop: 4 iterations, all errors auto-resolved
If build succeeds: Continue to finalization
If build fails after 5 attempts: Present errors and ask for user decision
After validation, I'll ask: "Proceed to finalization? (yes/no)"
I will start the development server for verification:
yarn start
Testing Checklist:
I will inform you when the development server is ready for your review.
I will generate a comprehensive completion report:
Using example-website-report (assets/example-website-report.md):
# Website Generation Complete: [Project Name]
## Summary
โ Docusaurus website created successfully
โ 4 commits created
โ All build validation checks passed
โ Branch: website/project-name-docusaurus
โ Development server running at http://localhost:3000
## Website Details
- **Destination**: [path]
- **Template**: NASA-AMMOS/slim-docsite-template
- **Customization**: AI-generated from project analysis
- **Documentation sections**: [count]
- **Pages created**: [count]
## Changes Applied
- Homepage: Customized with project-specific content
- Documentation: [count] sections organized
- Navigation: [count] menu items configured
- Styling: Project-appropriate theming applied
## Build Validation Results
โ Build successful (yarn build)
โ Development server tested
โ Warnings: [list or "None"]
## Git Information
Branch: website/project-name-docusaurus
Status: Clean (all committed)
Commits: 4 total
## Next Steps
1. Review website: http://localhost:3000
2. Customize content further if needed
3. Test all features and links
4. Set up deployment:
- GitHub Pages (recommended)
- Netlify, Vercel, or other platform
5. Create PR to merge to main branch
## Deployment Options
### GitHub Pages (Recommended)
```bash
# Push to GitHub
git remote add origin https://github.com/[username]/[repo].git
git push -u origin website/project-name-docusaurus
# Configure in GitHub Settings โ Pages โ GitHub Actions
# Pre-configured workflow will auto-deploy on merge to main
# Build production bundle
yarn build
# Deploy to hosting provider
# Copy build/ directory to web server
git checkout main
git branch -D website/project-name-docusaurus
**Final question**: **"Would you like help setting up deployment? (yes/no)"**
---
## Best Practices
### For Users
1. **Review generated content** - Verify accuracy of AI-generated descriptions
2. **Test thoroughly** - Check all links, navigation, and features
3. **Customize further** - Add project-specific details, branding, and content
4. **Set up deployment** - Use GitHub Pages or other hosting platform
5. **Maintain regularly** - Update documentation as project evolves
### For Safety
1. **Use git branches** - Never generate directly on main/master
2. **Commit recent work** - Ensure clean state before generation
3. **Review plan carefully** - Understand customizations before approval
4. **Test locally first** - Verify everything works before deploying
---
## FAQ
**Q: What if I don't have project materials to analyze?**
A: No problem! The skill will create a basic Docusaurus template that you can customize manually with guidance.
**Q: Can I customize the website after it's generated?**
A: Absolutely! The generated website is a standard Docusaurus project that you can fully customize.
**Q: What if the build fails after 5 attempts?**
A: The skill will present the errors and provide guidance for manual fixes. You can then continue or pause for intervention.
**Q: Can I use this for non-technical projects?**
A: Yes! The skill works with any type of project content, including business, research, creative, and educational materials.
**Q: How do I deploy the website?**
A: The skill provides deployment guidance. GitHub Pages is recommended and pre-configured via GitHub Actions workflow.
**Q: What if I want to undo the website generation?**
A: All changes are on a git branch. Simply:
```bash
git checkout main
git branch -D website/[branch-name]
Q: Can I regenerate the website later? A: Yes! Run the skill again with updated source materials to regenerate with new content.
Issue: Git branch creation fails
git status # Check status
git add . && git commit -m "Save work before website generation"
Issue: Template clone fails
Issue: Yarn install fails
node --versionnpm install -g yarnIssue: Build fails after generation
Issue: Development server won't start
yarn start --port 3001rm -rf node_modules && yarn installIssue: Broken links or missing pages
Issue: Deployment fails
docusaurus.config.js URL and baseUrl settingsTo customize only specific parts:
For complex projects, customize in stages:
To update website with new project content:
To apply custom branding:
src/css/custom.css after generationThis agent uses the following instruction guides (located in assets/):
These guides provide instructions for runtime analysis and generation, ensuring flexibility across different project types.