[codex] Add tfy CLI reference drift checks#45
Merged
Conversation
jitenderfoundry
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npx skills add truefoundry/skillsplus the promptsign me up for truefoundry.cli-reference.mdfrom the livetfy 0.13.12help surface, including valid nested commands and explicit invalid commands.tfy --versionfirst, then verify CLI login via credentials, then guide registration andtfy login --host <tenant-url>when missing.scripts/check-tfy-cli-reference.shand wire it intovalidate-skills.shto catch CLI/reference drift.tfy upload skill/tfy download skillguidance from the skills registry flow.AGENTS.mdreference, and keepTFY_API_KEYoptional in.env.example.Launch Flow
After this PR lands on
main, users can run:Then in Claude Code, Codex, or Cursor they can say:
That invokes
truefoundry-onboard, which checks existing CLI login, sends new users to registration, collects the tenant URL, guidestfy login --host <tenant-url>, and stops after login verification.Validation
./scripts/validate-skills.sh./scripts/validate-skill-security.sh./scripts/test-tfy-api.shgit diff --checkbash scripts/install.sh --helpshellcheck scripts/*.sh hooks/auto-approve-tfy-api.sh skills/_shared/scripts/tfy-api.sh plugin-scripts/*.shnpx skills add truefoundry/skills --listNote
Medium Risk
Introduces a new validation step (
check-tfy-cli-reference.sh) that can fail CI/local validation when the installedtfyCLI differs from the documented surface. Functional code paths aren’t changed, but contributor workflow and docs are tightly coupled to a specific CLI version.Overview
Keeps
tfycommand documentation in sync with reality. Addsscripts/check-tfy-cli-reference.sh(wired intoscripts/validate-skills.shand CONTRIBUTING) to comparetfy --help/subcommand help against an expected subcommand list, assert documented commands expose help, and ensure explicitly invalid commands still fail.Refreshes onboarding/setup guidance and examples. Expands
cli-reference.mdacross all skills to mirrortfy 0.13.12(valid nested commands, global flags, and explicit “do not run” destructive commands), updates prerequisites/onboarding flow to checktfy --versionbefore credential-based login verification, removes guidance for non-existenttfy upload/download skill, and tweaks install/setup CTAs (raw GitHub URLs, optional blankTFY_API_KEY, README prompt text).Reviewed by Cursor Bugbot for commit 0e719b8. Bugbot is set up for automated code reviews on this repo. Configure here.