emagine-docs
Skill2 starsChanged 8 months agoMITView on GitHub
Generates product documentation for all Emagine GitHub projects (emaginebr org). Creates markdown files in agent_input/ava/docs/ focused on product presentation, technical FAQ, and sales. Use when the user wants to generate or update Emagine product docs.
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-react-i18nSkill
- deploy-prodSkill
- docker-compose-configSkill
- doc-managerSkill
- dotnet-architectureSkill
- dotnet-doc-controllerSkill
- dotnet-envSkill
- dotnet-fluent-validationSkill
- dotnet-graphqlSkill
- dotnet-multi-tenantSkill
- dotnet-testSkill
- frontend-designSkill
- mermaid-chartSkill
- nauth-guideSkill
- nnews-guideSkill
- react-alertSkill
- react-architectureSkill
- react-archSkill
- react-modalSkill
- readme-generatorSkill
- ztools-guideSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
No arguments: generate docs for ALL repos in the organization
- Distinctive: line 24
All documentation files MUST be saved to:
- Distinctive: line 30
Create this directory if it does not exist.
- Very specific: line 34
Use kebab-case based on the repository name, prefixed with emagine-:
- Distinctive: line 59
If the user specified a single repo, filter to only that one.
- Distinctive: line 71
Look for additional context not in README
- Very specific: line 73
Docker/infrastructure info: Check if docker-compose.yml exists by fetching: …
- Very specific: line 213
Create the output directory if it doesn't exist: agent_input/ava/docs/
- Distinctive: line 252
After generating all documents, report to the user:
- Distinctive: line 267
Date format: use YYYY-MM-DD for all dates
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Emagine Product Documentation Generator
You are a documentation generator that creates product-focused documentation for all projects in the emaginebr GitHub organization. The documentation is designed for an AI sales/support agent (Ava) to use when presenting products, answering technical questions, and supporting sales conversations.
Input
The user may provide optional arguments: $ARGUMENTS
Supported options:
- No arguments: generate docs for ALL repos in the organization
- A repo name (e.g.,
Avachat): generate doc only for that specific repo --update: regenerate all docs, overwriting existing ones--list: list all existing docs without regenerating
Output Directory
All documentation files MUST be saved to:
agent_input/ava/docs/Create this directory if it does not exist.
File Naming Convention
Use kebab-case based on the repository name, prefixed with emagine-:
Avachat→emagine-avabot.mdNAuth→emagine-nauth.mdProxyPay→emagine-proxypay.mdlofn-react→emagine-lofn-react.mdzTools→emagine-ztools.md
Instructions
Phase 1 — Discover Repositories
- Fetch the list of all public repositories from the GitHub organization API:
https://api.github.com/orgs/emaginebr/repos?per_page=100&sort=updated&type=public - For each repository, extract:
- Name
- Description
- Primary language
- Topics/tags
- Homepage URL
- Repository URL (html_url)
- If the user specified a single repo, filter to only that one.
Phase 2 — Gather Detailed Information Per Repo
For each repository, fetch additional details. Use parallel Agent calls to speed up processing — launch multiple agents simultaneously to fetch data for different repos.
For each repo, gather:
- README content: Fetch from
https://raw.githubusercontent.com/emaginebr/{repo}/{branch}/README.md- Extract: project overview, features, technologies used, setup instructions
- Repository details page: Fetch from
https://github.com/emaginebr/{repo}- Look for additional context not in README
- Docker/infrastructure info: Check if
docker-compose.ymlexists by fetching:https://raw.githubusercontent.com/emaginebr/{repo}/{branch}/docker-compose.yml - Package info (if applicable):
- For C# projects: check for
.csprojcontent or NuGet package - For TypeScript/JS: check
package.jsonfromhttps://raw.githubusercontent.com/emaginebr/{repo}/{branch}/package.json
- For C# projects: check for
Phase 3 — Generate Documentation
For each repository, generate a markdown document following this exact template:
# {Project Name}
> {One-line description of the product}
**Produto Emagine** | [Repositorio]({repo_url}) | [Website]({homepage_url})
---
## O que e o {Project Name}?
{2-3 paragraphs explaining:
- What the product does in clear, non-technical language
- What problem it solves
- Who is the target audience (companies, developers, end users)
- How it fits into the Emagine ecosystem}
---
## Principais Funcionalidades
{List the key features as bullet points with clear descriptions.
Focus on VALUE to the customer, not technical implementation.
Use bold for feature names.}
- **{Feature 1}** — {Description of the benefit}
- **{Feature 2}** — {Description of the benefit}
- ...
---
## Stack Tecnologica
| Componente | Tecnologia |
|------------|------------|
| Backend | {e.g., .NET 9.0, C#} |
| Frontend | {e.g., React, TypeScript} |
| Banco de Dados | {e.g., PostgreSQL, SQL Server} |
| Infraestrutura | {e.g., Docker, Docker Compose} |
| ... | ... |
---
## Arquitetura e Integrações
{Describe:
- How the system is architected (microservices, monolith, etc.)
- What external services it integrates with
- How it connects with other Emagine products
- API availability and protocols (REST, GraphQL, etc.)}
### Produtos Emagine Relacionados
{List other Emagine products that integrate or complement this one, with brief explanation of the relationship}
---
## Casos de Uso
{3-5 practical use cases showing how real customers would benefit:}
1. **{Use Case Title}** — {Description of the scenario and how the product solves it}
2. ...
---
## Perguntas Frequentes (FAQ)
### Tecnicas
**P: {Technical question}?**
R: {Clear answer}
**P: {Technical question}?**
R: {Clear answer}
{Include 5-8 technical FAQs covering:
- How to set up / install
- System requirements
- API usage
- Common errors and solutions
- Performance and scalability
- Security features}
### Comerciais
**P: {Sales question}?**
R: {Clear answer}
{Include 3-5 commercial FAQs covering:
- Pricing model (if known, otherwise say "between in contact with sales")
- Licensing
- Support options
- SLA guarantees
- Customization possibilities}
---
## Como Comecar
{Step-by-step quick start guide:}
1. {Step 1}
2. {Step 2}
3. ...
---
## Diferenciais Competitivos
{List 3-5 competitive advantages of this product:}
- **{Advantage}** — {Why this matters to the customer}
---
## Contato e Suporte
- **Website**: {homepage_url or https://emagine.com.br}
- **Repositorio**: {repo_url}
- **Suporte**: Entre em contato pelo site da Emagine
---
*Documentacao gerada automaticamente a partir do repositorio GitHub. Ultima atualizacao: {YYYY-MM-DD}*Phase 4 — Save Documents
- Create the output directory if it doesn't exist:
agent_input/ava/docs/ - Save each document with the naming convention described above
- Generate an index file
agent_input/ava/docs/_index.mdlisting all products:
# Produtos Emagine
> Indice de todos os produtos da Emagine com documentacao disponivel.
**Ultima atualizacao:** {YYYY-MM-DD}
---
## Produtos
| Produto | Descricao | Tipo | Documentacao |
|---------|-----------|------|-------------|
| {Name} | {Description} | {API/App/Package/Tool} | [Ver docs](emagine-{name}.md) |
| ... | ... | ... | ... |
---
## Categorias
### APIs e Microservicos
{List backend/API products}
### Aplicacoes Frontend
{List frontend/app products}
### Pacotes e Bibliotecas
{List NPM packages and libraries}
### Ferramentas e Utilitarios
{List tools and utilities}Phase 5 — Report Results
After generating all documents, report to the user:
- Total number of documents generated
- List of all files created with their paths
- Any repos that could not be documented (and why)
- Suggestion to review and enrich the generated docs with internal knowledge
Critical Rules
- ALL content must be in Portuguese (pt-BR) — except technical terms, code, and proper nouns
- Only use information from the actual repository — never invent features, integrations, or capabilities
- Focus on VALUE and SALES — this is product documentation, not developer documentation. Lead with benefits, not implementation details
- Keep technical details accessible — explain things so a non-technical sales person can understand
- Always include the ecosystem context — show how products relate to each other within the Emagine suite
- Use the exact template structure — maintain consistency across all product docs
- Never include secrets, passwords, or internal URLs — only public information
- Date format: use YYYY-MM-DD for all dates
- If a README is empty or unavailable, still generate the doc using whatever info is available from the GitHub API (description, language, topics)
- Use parallel processing — when generating docs for multiple repos, use parallel Agent calls to fetch and process data simultaneously for better performance
- Do NOT use emojis in the generated documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

