Skip to content

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

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

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
Contributor

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
@boyangsvl boyangsvl self-assigned this Jul 10, 2026
copybara-service Bot pushed a commit that referenced this pull request Jul 10, 2026
Merge #6212

The skill extracts Python code blocks from a markdown file, executes each in an isolated environment, and generates a report covering load, run, and coverage status.

Fixes #6211

Also includes fixes for:
- Weakref GC of mock scheduler in test_context.
- check_new_py_files.sh path matching in monorepo environments.

PiperOrigin-RevId: 945889882
@adk-bot

adk-bot commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Thank you @happyhuman for your contribution! 🎉

Your changes have been successfully imported and merged via Copybara in commit c0fa51b.

Closing this PR as the changes are now in the main branch.

@adk-bot adk-bot added the merged [Status] This PR is merged label Jul 10, 2026
@adk-bot adk-bot closed this Jul 10, 2026
FrigaZzz pushed a commit to FrigaZzz/adk-python that referenced this pull request Aug 11, 2026
Merge google#6212

The skill extracts Python code blocks from a markdown file, executes each in an isolated environment, and generates a report covering load, run, and coverage status.

Fixes google#6211

Also includes fixes for:
- Weakref GC of mock scheduler in test_context.
- check_new_py_files.sh path matching in monorepo environments.

PiperOrigin-RevId: 945889882
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged [Status] This PR is merged skills [Component] This issue is related to skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants