Skip to content

Added a Skill to examine the code snippets in markdown files.#6212

Open
happyhuman wants to merge 9 commits into
google:mainfrom
happyhuman:main
Open

Added a Skill to examine the code snippets in markdown files.#6212
happyhuman wants to merge 9 commits into
google:mainfrom
happyhuman:main

Conversation

@happyhuman

Copy link
Copy Markdown

Link to Issue or Description of Change

Describe the change:

Problem:
Some of the AI-generated code snippets may not be syntactically correct, or runnable. We need to identify them.
Issue: #6211

Solution:
This PR provides a Skill to examine the existing code snippets in a given markdown file (or a folder containing multiple markdown files) and check whether they load properly and/or run. It generates a report at the end with its findings.

Testing Plan

Manual End-to-End (E2E) Tests:
I tested the skill against a number of different existing markdown files under docs/guides using both Gemini and CloudCode. For instance, I use the following prompts in CloudCode & Gemini:

  • Verify the code snippets in docs/guides/agents/llm_agent/single_turn.md
  • Verify all the code snippets in all the markdown files in docs/guides/workflow

I also simultaneously used both Gemini and CloudCode to improve the skill.

Checklist

  • I have read the CONTRIBUTING.md document.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have manually tested my changes end-to-end.
  • Any dependent changes have been merged and published in downstream modules.

@rohityan rohityan self-assigned this Jun 26, 2026
@boyangsvl boyangsvl self-requested a review June 26, 2026 17:19
@boyangsvl boyangsvl assigned boyangsvl and unassigned rohityan Jun 26, 2026
@GWeale GWeale assigned boyangsvl and GWeale and unassigned boyangsvl and GWeale Jun 26, 2026
@boyangsvl boyangsvl removed their assignment Jul 1, 2026
@rohityan rohityan assigned rohityan and unassigned rohityan Jul 1, 2026
@rohityan rohityan added the skills [Component] This issue is related to skills label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skills [Component] This issue is related to skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants