update-docs
Skill17 starsChanged 8 months agoMITView on GitHub
Use when syncing documentation after Salesforce Apex code changes. Update README, API docs, and deploy metadata references to match the current org codebase.
45 other projects use a version of this.
Adopted by
Most recently taken up by
- jakubsuplicki/codumenttheir own version, first seen Oct 4, 2026
- sd0xdev/sd0x-harnesstheir own version, first seen Sep 26, 2026
- broneq/bdktheir own version, first seen Sep 25, 2026
- FooJiaYin/dev-skillstheir own version, first seen Sep 24, 2026
- iuliandita/skillstheir own version, first seen Sep 24, 2026
- caipe-io/ai-platform-engineeringtheir own version, first seen Sep 22, 2026
Used with
Projects with it also use instinct-export, instinct-import and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
GoogleSkillpr-creator
Also in 5 projects that use this
belokonmSkillfullstack-developer
End-to-end feature expert specializing in frontend-backend integration, system architecture, and complete application development
Also in 4 projects that use this
mm-mazharSkillcache-components
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).
Also in 3 projects that use this
DauQuangThanhSkillfrontend-code-review
Conducts comprehensive frontend code reviews including React/Vue/Angular component analysis, TypeScript/JavaScript quality assessment, CSS/styling review, performance optimization, accessibility compliance, security vulnerabilities, and best practices validation. Produces detailed review reports with specific issues, severity ratings, and actionable recommendations. Use when reviewing frontend code, analyzing React/Vue/Angular components, checking JavaScript/TypeScript quality, validating CSS/SCSS, assessing web performance, or when users mention "review frontend code", "check React components", "analyze JavaScript", "review TypeScript", "validate accessibility", or "frontend code quality".
Also in 4 projects that use this
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- vercel/next.js★ 144ksame name
- huggingface/OpenEnv★ 2.6ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- cashew-labs/libretto★ 904same name
- caipe-io/ai-platform-engineering★ 422same name
- getnao/sylph★ 209same name
- sd0xdev/sd0x-harness★ 191same name
- aws-samples/sample-apex-skills★ 82same name
- DasDigitaleMomentum/opencode-processing-skills★ 59same name
35 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository116 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asideSkill
- checkpointSkill
- configure-sccSkill
- continuous-agent-loopSkill
- mcp-server-patternsSkill
- model-routeSkill
- prompt-optimizerSkill
- refactor-cleanSkill
- resume-sessionSkill
- save-sessionSkill
- search-firstSkill
- security-scanSkill
- sessionsSkill
- sf-2gp-security-reviewSkill
- sf-agentforce-developmentSkill
- sf-agentforce-mcp-actionsSkill
- sf-apex-async-patternsSkill
- sf-apex-best-practicesSkill
- sf-apex-constraintsSkill
- sf-apex-cursorSkill
- sf-apex-enterprise-patternsSkill
- sf-apex-testingSkill
- sf-api-designSkill
- sf-approval-processesSkill
- sf-aura-developmentSkill
- sf-build-fixSkill
- sf-cli-referenceSkill
- sf-data-modelingSkill
- sf-debuggingSkill
- sf-deployment-constraintsSkill
- sf-deploymentSkill
- sf-devops-ci-cdSkill
- sf-docs-lookupSkill
- sf-e2e-testingSkill
- sf-experience-cloudSkill
- sf-flow-developmentSkill
- sf-governor-limitsSkill
- sf-harness-auditSkill
- sf-helpSkill
- sf-integrationSkill
- sf-lwc-constraintsSkill
- sf-lwc-developmentSkill
- sf-lwc-testingSkill
- sf-metadata-managementSkill
- sf-platform-events-cdcSkill
- sf-quickstartSkill
- sf-security-constraintsSkill
- sf-securitySkill
- sf-soql-constraintsSkill
- sf-soql-optimizationSkill
- sf-tdd-workflowSkill
- sf-testing-constraintsSkill
- sf-trigger-constraintsSkill
- sf-trigger-frameworksSkill
- sf-visualforce-developmentSkill
- strategic-compactSkill
- update-platform-docsSkill
- asideSkill
- checkpointSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
9
Distinctive
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 14
After making code changes that affect the project structure or API surface
- Distinctive: line 15
When new Apex classes, triggers, LWC components, or flows have been added or removed
- Distinctive: line 16
When deployment steps or prerequisites have changed
- Very specific: line 18
When regenerating API documentation for @RestResource, @AuraEnabled, or @InvocableMethod classes
- Distinctive: line 24
Read project configuration to understand the tech stack:
- Very specific: line 66
Update these sections with <!-- AUTO-GENERATED-START --> / <!-- AUTO-GENERATED-END --> markers:
- Distinctive: line 92
Document any custom sfdx plugins
- Distinctive: line 112
Create or update deployment documentation:
- Very specific: line 146
Ensure all auto-generated sections have proper markers so future updates don't clobber manual content.
- Distinctive: line 150
Only update sections between auto-generated markers
- Distinctive: line 151
Never overwrite manually-written content
- Distinctive: line 152
Always show a diff before writing changes
“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update Docs — Synchronize Documentation with Codebase
Synchronize documentation with the current state of the Salesforce codebase. Scans metadata, extracts project structure, and updates documentation files.
When to Use
- After making code changes that affect the project structure or API surface
- When new Apex classes, triggers, LWC components, or flows have been added or removed
- When deployment steps or prerequisites have changed
- To check for stale documentation that hasn't been updated in 90+ days
- When regenerating API documentation for
@RestResource,@AuraEnabled, or@InvocableMethodclasses
Workflow
Step 1 — Scan Project Metadata
Read project configuration to understand the tech stack:
# Core project config
cat sfdx-project.json
# Package dependencies
cat sfdx-project.json | grep -A5 "packageDirectories"
# Node.js tooling
cat package.json 2>/dev/null | grep -A10 '"scripts"'Step 2 — Inventory Source Components
Count and categorize all Salesforce metadata:
# Apex classes
find force-app -name "*.cls" -not -name "*Test.cls" | wc -l
# Apex test classes
find force-app -name "*Test.cls" | wc -l
# Apex triggers
find force-app -name "*.trigger" | wc -l
# LWC components
find force-app -path "*/lwc/*/*.js" | wc -l
# Custom objects
find force-app -name "*.object-meta.xml" | wc -l
# Flows
find force-app -name "*.flow-meta.xml" | wc -l
# Permission sets
find force-app -name "*.permissionset-meta.xml" | wc -lStep 3 — Update README Sections
Update these sections with <!-- AUTO-GENERATED-START --> / <!-- AUTO-GENERATED-END --> markers:
Project Structure:
## Project Structure
| Component | Count | Location |
|-----------|-------|----------|
| Apex Classes | 45 | `force-app/main/default/classes/` |
| Apex Triggers | 8 | `force-app/main/default/triggers/` |
| Test Classes | 32 | `force-app/main/default/classes/*Test.cls` |
| LWC Components | 12 | `force-app/main/default/lwc/` |
| Custom Objects | 15 | `force-app/main/default/objects/` |
| Flows | 6 | `force-app/main/default/flows/` |Setup Instructions:
- Scratch org creation command from
config/project-scratch-def.json - Data seeding scripts if present
- Permission set assignments
Available Commands:
- List custom SF CLI commands from
package.jsonscripts - Document any custom sfdx plugins
Step 4 — Generate API Documentation
For classes with @RestResource, @AuraEnabled, or @InvocableMethod:
## API Endpoints
### AccountController (@RestResource)
- `GET /services/apexrest/accounts` — List accounts
- `POST /services/apexrest/accounts` — Create account
### AccountService (@AuraEnabled methods)
- `getAccountDetails(Id accountId)` — Returns account with contacts
- `updateAccountStatus(Id accountId, String status)` — Updates statusStep 5 — Generate Deployment Guide
Create or update deployment documentation:
## Deployment Guide
### Prerequisites
- SF CLI v2.x installed
- Target org authenticated: `sf org login web --alias <alias>`
### Deploy Steps
1. Validate: `sf project deploy validate --target-org <alias> --test-level RunLocalTests`
2. Deploy: `sf project deploy start --target-org <alias> --test-level RunLocalTests`
### Metadata Dependencies
`sf project deploy start` handles dependency resolution automatically — no manual ordering is needed. If a deployment fails due to a missing dependency, verify that all referenced metadata is included in the source being deployed.Step 6 — Check Staleness
Flag documentation files not updated in 90+ days:
find . -name "README.md" -o -name "CONTRIBUTING.md" -o -name "*.md" -path "*/docs/*" | while read f; do
last_modified=$(git log -1 --format=%ai -- "$f" 2>/dev/null)
if [ -n "$last_modified" ]; then
last_epoch=$(date -d "$last_modified" +%s 2>/dev/null || date -j -f "%Y-%m-%d %H:%M:%S %z" "$last_modified" +%s 2>/dev/null)
days=$(( ($(date +%s) - $last_epoch) / 86400 ))
if [ "$days" -gt 90 ]; then echo "STALE ($days days): $f"; fi
fi
doneStep 7 — Verify Auto-Generated Markers
Ensure all auto-generated sections have proper markers so future updates don't clobber manual content. Only modify content between <!-- AUTO-GENERATED-START --> and <!-- AUTO-GENERATED-END --> markers.
Rules
- Only update sections between auto-generated markers
- Never overwrite manually-written content
- Always show a diff before writing changes
- Preserve existing formatting and style of the document
Examples
/update-docs
/update-docs Sync the README with the new Agentforce integration feature
/update-docs Regenerate API documentation for all @RestResource classes
/update-docs Check for stale documentation and suggest updatesDoes 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.

