[Bug] android-cli, r8-analyzer: broken code blocks and escaped commands in skill markdown

オープン 初心者向け
#207 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, shell
領域
documentation

調査の方向性

この issue は、devtools/android-cli および performance/r8-analyzer ディレクトリ内の SKILL.md、interact.md、journeys.md、REFLECTION-GUIDE.md の特定の行を指しています。まず、リンクされた行の生のマークダウンファイルを表示して、壊れたコードブロックとエスケープされた文字を確認してください。修正には、適切なフェンスで囲まれたコードブロックを復元し、シェルコマンドの構文を修正し(余分なバックスラッシュを削除)、ProGuard ルールのフォーマットを修正するためにマークダウンを編集することが含まれます。変更を確認するには、レンダリングされたプレビューをチェックし、コマンドが正しくコピーされることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

Affected Skill

devtools/android-cli, performance/r8-analyzer

Description

Several code examples in these two skills are broken in the raw markdown, which is what an agent reads. Some of them no longer work when copied.

android-cli, since the 2026-09-15 update:

  • SKILL.md#L33-L36: the install commands contain \| and \&\&, and the Windows paths became %TEMP%\\i.cmd. Run as written, curl -fsSL .../install.sh \| bash passes | and bash to curl as extra URLs, and nothing gets installed:
    curl: (6) Could not resolve host: |
    curl: (6) Could not resolve host: bash
    
  • interact.md#L77-L83, journeys.md#L3-L16 and journeys.md#L49-L50: fenced blocks became single-backtick spans (`json, `xml), so they render inline, and the journey XML lost its indentation.

r8-analyzer, references/REFLECTION-GUIDE.md, throughout the file:

  • The fences are either backslash-escaped (\`\`\`proguard or \`\`\`kotlin at L18, L35, L54, L68, L93, L129) or reduced to single backticks (L13, L29, L50, L75, L88, L109, L117), so none of the examples render as code blocks.
  • L20-L21 and L39-L40: <init> is missing from the keep rules, which read -keep class \* implements com.example.library.StartupTask { (); } instead of { <init>(); }.
  • L54: the rule is on the same line as its comment, # Keep the annotation itself -keep @interface com.example.library.ReflectiveExecutor, so the -keep becomes part of the comment when copied. L68 puts the start of the Kotlin example on the label line the same way, and L136-L139 runs # No manual rule needed into the note text.
  • Wildcards and comment markers are backslash-escaped (class \*, /\* skip feature \*/), so copied rules keep the backslashes.

Separately, section 3 describes the rules incorrectly. The comment at L56 says "Keep members of any class annotated with this specific annotation", but the rule at L57-L59 keeps the annotated members of any class. The rules also leave out -keepattributes RuntimeVisibleAnnotations, which the keep rule examples include for the same pattern so the annotation can be read at runtime.

Expected Behavior

Install commands and keep rules keep valid syntax when copied, and code examples render as code blocks.

Actual Behavior

The install commands and keep rules fail or change meaning when copied, and the code examples render as inline text.

Steps to Reproduce

Open the raw files at the linked lines.

Suggested Fix

Restore the fences, the plain |, && and *, the single \ in the Windows paths, and <init>(); in the keep rules. In section 3, fix the comment and add -keepattributes RuntimeVisibleAnnotations.

The android-cli items still present after the 2026-10-21 update are tracked in https://issuetracker.google.com/issues/576082217.

主要言語
Kotlin
スター
10.7k
フォーク
708
平均マージ
8日 4時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

android/skills のほかの issue

android/skills の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。