Skip to content

Update ADK skills from agent-lack master - #54

Merged
AugustDG merged 3 commits into
masterfrom
codex/update-skills-agent-lack-master
Jul 6, 2026
Merged

Update ADK skills from agent-lack master#54
AugustDG merged 3 commits into
masterfrom
codex/update-skills-agent-lack-master

Conversation

@AugustDG

@AugustDG AugustDG commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update ADK skill references from agent-lack origin/master at ef112a24.
  • Document current prod secret behavior: prod secrets live on the remote bot, deploy warns by default, and --require-secrets is available for CI-strict deploys.
  • Document the Dev Console knowledge connector empty-state bootstrap, connector file selection behavior, supported indexable formats, and read-only conversation inspection.
  • Update /adk-ship and /adk-validate guidance to match current deploy and secret handling.

Review follow-up

  • Restored image indexable formats and the image/PDF vision-processing wording.
  • Removed .adkignore guidance because that agent-lack change is not merged yet.
  • Added runtime secrets.OPENAI_API_KEY access to the best-practice secret example.
  • Changed the .mdx MIME example to text/markdown; the source selector is extension-based and MDX is indexed as Markdown text.

Validation

  • git diff --check
  • git ls-files -z | xargs -0 bunx oxfmt@0.41.0 --check
  • GitHub checks are green on 2f5bafb: Code Quality check, commands manifest check, and validate.

Note: full bun run format:check scans the existing untracked .claude/ worktrees in this checkout, so validation used the tracked file set that matches the PR contents.

Comment thread skills/adk/references/files.md
Comment thread skills/adk/references/cli.md Outdated
Comment thread skills/adk/references/files.md Outdated
Comment thread skills/adk/SKILL.md Outdated
@AugustDG
AugustDG marked this pull request as ready for review July 6, 2026 13:12
@greptile-apps

greptile-apps Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates eight ADK skill and command documentation files to align with the current agent-lack master (ef112a24), documenting the full lifecycle of declared secrets (declaration in agent.config.ts, CLI management, read-only prod behavior), the --no-watch / --require-secrets CLI flags, connector KB bootstrap flow, and read-only conversation inspection in the Dev Console.

  • Secrets documentation overhaul: agent-config.md, cli.md, pages.md, adk-ship.md, and adk-validate.md now consistently describe declaring secrets in agent.config.ts, setting values with adk secret:set [--prod], reading them via the typed secrets.KEY proxy, and the write-only nature of prod values.
  • Indexable file types expanded: files.md adds .doc, .mdx, .htm, and knowledge-bases.md updates the directory filter regex to match the new set; pages.md documents the connector picker's accepted extensions.
  • PR description references .adkignore documentation, but no .adkignore content appears in any of the eight changed files or anywhere else in the repository — this item appears to have been omitted from the PR.

Confidence Score: 4/5

Safe to merge — all changes are documentation and skill markdown files with no executable code paths affected.

The changes are internally consistent and align secrets, CLI flags, and Dev Console descriptions across all eight files. Two small gaps stand out: the best-practice code example in agent-config.md shows the declaration side but not the runtime consumption side, leaving the contrast incomplete; and the text/mdx MIME type added to files.md is unregistered and could silently mismatch backend expectations. Neither is a blocking defect, but both warrant a quick check before merging.

skills/adk/references/agent-config.md (incomplete best-practice snippet) and skills/adk/references/files.md (unregistered MIME type for .mdx)

Important Files Changed

Filename Overview
commands/adk-ship.md Adds adk secret --prod --format json to the pre-deploy checklist and updates step 4 to show the adk secret:set … --prod remediation command; consistent with cli.md changes.
commands/adk-validate.md Extends the hardcoded-secrets check to include the full secret lifecycle guidance (declare → set → read via secrets.KEY).
skills/adk-dev-console/references/pages.md Updates Conversations page description to "read-only detail viewer", corrects Secrets tab scope (dev + prod, write-only prod), updates deploy dialog warning for missing prod secrets, and documents connector KB bootstrap and file extension list.
skills/adk/references/agent-config.md Adds secrets declaration example to the config block, new Secrets subsection with runtime import/access pattern, and renames the Best Practice from "env var" to "declared secrets". The ✅ Good code snippet shows only the declaration, not the runtime access side.
skills/adk/references/cli.md Documents --no-watch for adk dev, --require-secrets for adk deploy, expands adk secret description to cover dev/prod distinction and write-only prod values, and updates DO/DON'T list to prefer declared secrets over .env.
skills/adk/references/explain-config.md Corrects adk secretsadk secret (command name fix) and expands the hardcoded-secrets warning to reference the full declare/set/read pattern.
skills/adk/references/files.md Adds .doc, .mdx (with MIME type text/mdx), and .htm to the INDEXABLE_TYPES map; .htm correctly reuses text/html. text/mdx is not an IANA-registered type.
skills/adk/references/knowledge-bases.md Updates directory filter regex to include the new extensions, adds path-restriction notes for DataSource.Directory.fromPath(), and documents the Dev Console connector KB bootstrap flow.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Declare secret in agent.config.ts] --> B[Dev: adk secret:set KEY value]
    A --> C[Prod: adk secret:set KEY value --prod]
    B --> D[Stored in .adk/secrets.json]
    C --> E[Stored on remote bot - write-only]
    D --> F[Read via secrets.KEY at runtime]
    E --> F
    F --> G[Bot code uses value]

    subgraph adk-ship pre-deploy checks
      H[adk secret --prod --format json] --> I{All required prod secrets set?}
      I -- No --> J[Warn / show adk secret:set cmds]
      I -- Yes --> K[adk deploy]
      K --> L{--require-secrets flag?}
      L -- Yes --> M[Hard fail if any unset]
      L -- No --> N[Warn only, deploy proceeds]
    end
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[Declare secret in agent.config.ts] --> B[Dev: adk secret:set KEY value]
    A --> C[Prod: adk secret:set KEY value --prod]
    B --> D[Stored in .adk/secrets.json]
    C --> E[Stored on remote bot - write-only]
    D --> F[Read via secrets.KEY at runtime]
    E --> F
    F --> G[Bot code uses value]

    subgraph adk-ship pre-deploy checks
      H[adk secret --prod --format json] --> I{All required prod secrets set?}
      I -- No --> J[Warn / show adk secret:set cmds]
      I -- Yes --> K[adk deploy]
      K --> L{--require-secrets flag?}
      L -- Yes --> M[Hard fail if any unset]
      L -- No --> N[Warn only, deploy proceeds]
    end
Loading

Comments Outside Diff (2)

  1. skills/adk/references/files.md, line 519-529 (link)

    P2 text/mdx is not a registered IANA MIME type

    The entry mdx: 'text/mdx' uses an unregistered type. The wider ecosystem conventionally uses text/x-mdx for MDX content. If Botpress's backend or the connector picker treats this string literally (e.g., for Content-Type headers or accept filters), passing a non-standard value could cause silent mismatches. Worth confirming whether text/mdx is what the backend actually expects, or if text/x-mdx / text/plain is the safer default.

  2. commands/adk-ship.md, line 1-5 (link)

    P2 PR description references .adkignore documentation that is absent from the diff

    The PR summary lists "Document … .adkignore" as one of the deliverables, but no .adkignore content appears in any of the eight changed files or anywhere else in the repository. If this was intentional (deferred to a follow-up), the PR description should say so; if it was accidentally omitted, the relevant file (likely skills/adk/references/files.md or cli.md) needs an .adkignore section.

Reviews (1): Last reviewed commit: "docs(adk): address skill review comments" | Re-trigger Greptile

Comment on lines 346 to +364
## Best Practices

### 1. Use Environment Variables for Secrets
### 1. Use Declared Secrets for Runtime Credentials

```typescript
// ❌ Bad - hardcoded secrets
config: {
apiKey: 'sk-abc123def456'
}

// ✅ Good - environment variable
config: {
apiKey: process.env.OPENAI_API_KEY
// ✅ Good - declared in agent.config.ts
secrets: {
OPENAI_API_KEY: {
description: 'OpenAI API key'
}
}
```

Use `${env:VAR_NAME}` only for integration or plugin configuration values that the CLI applies to Cloud. For credentials read by bot code, declare a secret and access it through `secrets.KEY`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Best-practice example missing runtime usage side

The "✅ Good" snippet shows only the declaration in agent.config.ts but not how it replaces the bad pattern at the call site. A reader who copied the old config: { apiKey: process.env.OPENAI_API_KEY } pattern still won't know what to write instead in the place where the key is consumed. Adding a second snippet (or extending the single one) that shows const apiKey = secrets.OPENAI_API_KEY would make the contrast self-contained without requiring the reader to scroll to the Secrets subsection above.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@AugustDG
AugustDG merged commit 1f12077 into master Jul 6, 2026
3 checks passed
@AugustDG
AugustDG deleted the codex/update-skills-agent-lack-master branch July 6, 2026 15:41
AugustDG added a commit that referenced this pull request Jul 20, 2026
* docs(adk): update skills from agent-lack master

* docs(adk): address skill review comments

* docs(adk): address greptile review notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants