Skip to content

Add AGENTS.md for GitHub Copilot CLI context on Mac#1

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/create-agents-md-file
Draft

Add AGENTS.md for GitHub Copilot CLI context on Mac#1
Copilot wants to merge 2 commits into
mainfrom
copilot/create-agents-md-file

Conversation

Copilot AI commented Dec 15, 2025

Copy link
Copy Markdown

Creates comprehensive AI assistant documentation for the HBuilderX uni-app testing plugin, targeting GitHub Copilot CLI usage on Mac terminals.

Content Structure

  • Project architecture: Complete source tree with module responsibilities (extension.js, HBuilderXCli.js, TestCaseRun.js, etc.)
  • CLI command reference: All supported platforms (web-chrome/safari/firefox, mp-weixin, app-android/ios-simulator/harmony) with Mac-specific examples
  • Development patterns: HBuilderX API usage, command registration, async handling, device management
  • Testing guide: Jest code snippets, multi-platform test structures, platform-specific constraints
  • AI integration examples: Concrete scenarios for adding test assertions, CLI parameters, error messages

Key Sections

# Mac terminal CLI examples
cli uniapp.test web-safari --project ~/Projects/my-uniapp
cli uniapp.test app-ios-simulator --project ~/Projects/my-uniapp
cli uniapp.test app-android --project ~/Projects/my-uniapp --testcaseFile pages/login/login.test.js
// HBuilderX command registration pattern
let cli_command = hx.commands.registerCliCommand('uniapp.test platform', async (params) => {
    await RunTestForHBuilderXCli_main(params, 'platform');
});

File provides context for AI tools to generate code consistent with HBuilderX plugin architecture, Jest testing framework, and multi-platform automation (Puppeteer, ADBKit, node-simctl).

Stats: 736 lines, 12 main sections, 36 subsections, 37 code examples

Original prompt

分析这个仓库,然后以人工智能的角度,生成一份AGNETS.md,以便供copilot cli在mac电脑终端使用。


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: dcloud-wandl <53882753+dcloud-wandl@users.noreply.github.com>
Copilot AI changed the title [WIP] Create AGNETS.md for Copilot CLI usage Add AGENTS.md for GitHub Copilot CLI context on Mac Dec 15, 2025
Copilot AI requested a review from dcloud-wandl December 15, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants