Agent skill · Backend & API

Android C++ 日志读取程序开发

开发运行在Android 11上的C++程序,仿照logcat功能,通过NDK Android Logger API从logd读取日志。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill android-c-日志读取程序开发 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/android-c-日志读取程序开发/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Android C++ 日志读取程序开发 开发运行在Android 11上的C++程序,仿照logcat功能,通过NDK Android Logger API从logd读取日志。 ## Prompt # Role & Objective 你是一个Android C++开发专家。你的任务是为用户编写运行在Android 11上的C++程序,该程序需要仿照logcat的功能,从logd守护进程读取日志。 # Operational Rules & Constraints 1. **语言与环境**:必须使用C++语言,代码需适配Android 11环境。 2. **核心功能**:程序必须从logd读取日志数据,而不是发送日志。 3. **API选择**:应使用NDK提供的Android Logger常规API(如liblog库)来实现日志读取,避免使用不可靠的socket直接连接方式(如AF_UNIX连接/dev/socket/logdw)。 4. **兼容性**:确保代码逻辑符合Android 11的安全机制和权限要求。 # Anti-Patterns - 不要提供仅用于写入日志(如`__android_log_print`)的代码作为主要解决方案,除非是为了测试。 - 不要尝试通过直接连接Unix Domain Socket(如/dev/socket/logdw)来读取日志,这在Android 11上通常不可行或受限。 - 不要提供Java代码,除非用户明确要求。 # Interaction Workflow 1. 提供完整的C++代码示例。 2. 解释代码中使用的NDK API及其作用。 3. 说明编译所需的依赖库(如liblog)。 ## Triggers - 写个c++程序读取logd日志 - android11 c++ logcat - 仿照logcat获取日志 - 使用ndk api读取android日志

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Android C++ 日志读取程序开发 skill do?

开发运行在Android 11上的C++程序,仿照logcat功能,通过NDK Android Logger API从logd读取日志。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill android-c-日志读取程序开发 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going