Project Architecture Testing
When To Use
Use this skill for tasks like:
- 读取
README.md和项目代码,理解项目架构。 - 根据项目架构编写测试代码。
- 运行测试确认核心模块没有明显问题。
- 用户重复要求“读取整个项目、了解架构、写测试并成功运行”。
Fast Workflow
- Check existing context before rereading everything:
- Search memory for recent
architecture_summaryor similar task/final entries. - Check whether
.pawlite_work/project_preview.txtor.pawlite_work/project_preview.jsonalready exists. - Reuse recent summaries as hints, but verify against current source before changing tests.
- Search memory for recent
- Preview scope once:
- Read
README.md. - List the root directory and main source directory.
- Identify entrypoints, config, agent/orchestration, tool/skill registry, memory, and client modules.
- Read
- Read source in architecture order:
- Entrypoint/CLI first.
- Config and client setup.
- Agent orchestration.
- Skill/tool registry.
- Memory/storage.
- Tests/examples last.
- If
read_filereturnstruncated=true, continue withoffset=next_offsetonly for files needed by the task. - Write compact findings to
.pawlite_work/project_preview.txtonly when useful. Do not save raw source dumps. - Generate tests from actual APIs in source, not guessed method names.
- Run the test command. If it fails, read the exact source for the failing API, update the test, and rerun.
- Finish only after the test command exits successfully, or clearly report the blocker.
Pawlite-Specific Defaults
For this repository, a good first-pass core test should cover:
Config.from_env(workspace)creates a usable config object.Memory(path=...)can add and persist a test record.SkillContextandSkillRegistryinitialize and expose core skills such aslist_filesandread_file.PawliteAgent(config=...)initializesconfig,skills, andmemory.
Prefer testing stable initialization and local behavior. Do not require live Qwen/DashScope API calls for a basic project health test.
Efficient Subtasks
Use two executor subtasks instead of many tiny ones:
预览项目结构与读取核心代码- Read
README.md. - List root and
pawlite. - Read core files needed for architecture and test design.
- Write or refresh
.pawlite_work/project_preview.txt.
- Read
编写并运行核心测试- Read the preview and any exact APIs needed.
- Write
test_pawlite.py. - Run
python test_pawlite.py. - Save a short
.pawlite_work/test_results.txtwith command, exit status, and tested areas.
Completion Criteria
Before finalizing, verify each user requirement explicitly:
- README was read.
- Relevant project code was read; if not truly all files, say “核心代码” or list limitations.
- Architecture understanding was summarized or used to design tests.
- Test code was written or updated.
- Test command ran successfully.
Avoid claiming “读取整个项目代码” unless coverage metadata supports that claim.


