feat: add installable agent skill for code-mode sandbox workflows (#45) - #46
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the lkr-code-mode agent skill, adding documentation, examples, and helper scripts to enable AI agents to execute Python code and Looker SDK operations non-interactively. The feedback suggests replacing absolute local file URLs in the documentation with relative paths, and adding defensive checks to the helper scripts to handle potential None values gracefully and prevent runtime exceptions.
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
Adds an installable agent skill (
lkr-code-mode) compatible withnpx skillsand.agents/skills/conventions, teaching AI agents how to work with the Lookercode-mode sandboxnon-interactively.Closes #45
Key Additions
skills/lkr-code-mode/SKILL.md):lkr code-mode sandboxexecution (--code,--file,--var,--dev-mode).--oauth-account,--force-oauth,--env-file, standard env vars).lkr-dev-cli auth --help,lkr-dev-cli code-mode --help,lkr-dev-cli code-mode sandbox --help).dir(),help(),lookup(),lookup_type(),search_with_lookups(),examples(),readme()).skills/lkr-code-mode/scripts/):personal_folder_dashboards.py: Inspect user, extractpersonal_folder_id, retrieve personal dashboards.order_items_query.py: Run inline explore query onthelook/order_itemswith status filter.traverse_folders.py: Recursively gather dashboards and looks from all nested subfolders.readme.py&examples.py: In-sandbox discovery docs and recipes..agents/skills/lkr-code-modesymlinked directly to../../skills/lkr-code-mode.README.mdupdated withnpx skills add lkrdev/cli --skill lkr-code-modeinstall instructions.lkr/codemode/readme.pyandlkr/codemode/examples.pywith personal folder and inline query examples.Verification
uv run ruff check .passed.uv run pytest tests/test_codemode.pypassed (24/24).