⚡ IT’S ALIVE! IT’S ALIVE! ⚡
The second ritual of #DeFraggingTheFrankenOrg is complete. We dared to ascend the creaking stairs and enter... The Attic.
A monstrous thank you to the brave devs and architects who brandished their torches and joined us in the flesh. For those who stayed locked in their quarters, the terrifying footage has been archived for posterity.
🎙️ Footage of Episode 2 is on YouTube https://youtu.be/HHOGGxgreyI
📜 "The Attic Nobody Wanted to Open" - The Metadata Lens
Here is the dark knowledge we unearthed from the dust and cobwebs:
- The 6 Metadata Categories: The vital organs that matter most if you ever want to breathe life into Agentforce.
- Salesforce Scanner: We strapped the demo org to the operating table and ran live electricity through it. The results were shocking.
- Safe Deletion Protocol: Step-by-step, no shortcuts. Because if you sever the wrong wire, the monster wakes up angry.
- Unlocked Packages: The modern, 2026 alchemy for keeping your metadata from stitching itself into a horrifying blob.
🧪 Free Alchemical Ingredients
No need to pillage the local graveyard. We’ve left our Scanner commands, the Deletion Protocol, and an Unlocked Package starter template.
SF Scanner Commands
# See installed pluginssf plugins# Install / update Code Analyzer pluginsf plugins install code-analyzer# List available recommended rulessf code-analyzer rules# Run recommended analysis on the DX projectsf code-analyzer run --workspace force-app --output-file reports/code-analyzer-report.html# Focus on security and performance style issuessf code-analyzer run --workspace force-app --rule-selector "(pmd,eslint,flow):Security:Recommended" --output-file reports/security-results.sarif# Fail CI if a severity 1, 2, or 3 issue is foundsf code-analyzer run --workspace force-app --severity-threshold 3 --output-file reports/quality-gate.html# Include actionable guidance where availablesf code-analyzer run --workspace force-app --include-fixes --include-suggestions --output-file reports/actionable-results.sarif
Safe Deletion Protocol
Step 1 — Confirm functional non-use
Step 2 — Confirm metadata references
Step 3 — Detach before delete
Step 4 — Wait with intent
Step 5 — Delete and log
Unlocked Packages
# Create packagesf package create --name "MetadataHealthCore" --package-type Unlocked --path force-app --no-namespace# Create versionsf package version create --package "MetadataHealthCore" --installation-key-bypass --wait 20# Install in target orgsf package install --package 04tXXXXXXXXXXXX --target-org UAT --wait 20 --publish-wait 10
Resources
- Salesforce Developers: Aura introduction / use LWC instead of Aura https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm- Salesforce Developers: Migrate Aura components to Lightning Web Components https://developer.salesforce.com/docs/platform/lwc/guide/migrate-introduction.html- Salesforce Developers: Code Analyzer ESLint engine https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/engine-eslint.html- Salesforce Developers: Code Analyzer release notes https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/release-notes.html- Salesforce Developers: Security for Lightning Components https://developer.salesforce.com/docs/platform/lightning-components-security/guide/get-started-intro.html- Salesforce Developers: Lightning Web Security introduction https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-intro.html- Salesforce Developers: LWS sanitization https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-sanitize.html- Salesforce Developers: Enable LWS in an org https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-enable.html- Salesforce Developers: Aura validation using ESLint https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/validation_with_sfdx.htm- Salesforce Developers: Supported JavaScript for Aura https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_supported_es.htm
@Salesforce Developer Group, Dubai, UAE @WFD Partner Cohort: TDX2630DaysChallenge @Agentblazer Community Group @* Salesforce Developers * @Architect Trailblazers #NoClicksJustVibes #DeFraggingTheFrankenOrg