| name | check-secure-files |
| description | Enforces a checklist to verify that all required secure configuration files (google-services.json, GoogleService-Info.plist, environment-configs.json) are present for all environments (dev, stg, prd). |
Check Secure Files Skill
This skill ensures that the necessary secure configuration files are populated before proceeding with build variant setup or deployment.
Steps
1. Initialize secureFiles
- Check/Create
secureFiles:
- Copy the template
secureFiles folder from resources (.agent/skills/setup_variants/resources/secureFiles) to the project root if it does not exist.
- Ensure
signing/debug.keystore and signing/keystore.properties.template are present.
2. Verify Checklist (CRITICAL)
[!IMPORTANT]
Safety Check: You must NOT proceed until the secureFiles directory is populated with actual data.
ASK the user to confirm the following checklist. If the user asks to proceed without confirming ALL items, you MUST ask again.
Checklist:
-
Dev Environment
-
Staging Environment
-
Production Environment
3. Verify Content Integrity
- Compare with Templates:
- For each file in the checklist, compare its content with the corresponding template in
.agent/skills/setup_variants/resources/secureFiles.
- Example: Compare
secureFiles/dev/google-services.json with .agent/skills/setup_variants/resources/secureFiles/dev/google-services.json.
- Validation Logic:
- If a file has the exact same content as the template, it is considered INVALID (user failed to update it).
- If a file is missing, it is INVALID.
- On Failure:
- If any file is invalid:
- Notify the user specifically which files are still defaults or missing.
- Re-present the Checklist from Step 2.
- Uncheck the boxes for the invalid files.
- Ask the user to update the files and check the box again when done.
- Loop until all files are present and different from the templates.